d: Only handle the left-to-right evaluation of a call expression during gimplify
commit7e9dd9de169034810b92d47bf78284db731fa5da
authorIain Buclaw <ibuclaw@gdcproject.org>
Sun, 29 Jan 2023 20:25:40 +0000 (29 21:25 +0100)
committerIain Buclaw <ibuclaw@gdcproject.org>
Tue, 21 Feb 2023 14:12:19 +0000 (21 15:12 +0100)
tree6a4ab0d6e1969dad90e6845d1d06545a22a69be8
parent8063de4a8cde958c34fbd2af4a25080709263c74
d: Only handle the left-to-right evaluation of a call expression during gimplify

Removes an unnecessary rewriting of the front-end AST during lowering.

gcc/d/ChangeLog:

* d-codegen.cc (d_build_call): Remove front-end expansion of
side-effects in a call expression.
* d-gimplify.cc (d_gimplify_call_expr): Gimplify the callee before its
arguments.
gcc/d/d-codegen.cc
gcc/d/d-gimplify.cc