Skip to content
This repository was archived by the owner on Jun 20, 2019. It is now read-only.

Commit 29fb636

Browse files
committed
Use target_expr based stabilize in build_assign
1 parent 605964d commit 29fb636

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

gcc/d/d-codegen.cc

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1372,8 +1372,7 @@ component_ref (tree object, tree field)
13721372
tree
13731373
build_assign (tree_code code, tree lhs, tree rhs)
13741374
{
1375-
tree init = stabilize_expr (&lhs);
1376-
init = compound_expr (init, stabilize_expr (&rhs));
1375+
tree init = stabilize_expr2 (&lhs);
13771376

13781377
/* If initializing the LHS using a function that returns via NRVO. */
13791378
if (code == INIT_EXPR && TREE_CODE (rhs) == CALL_EXPR

0 commit comments

Comments
 (0)