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

Commit

Permalink
Use target_expr based stabilize in component_ref
Browse files Browse the repository at this point in the history
  • Loading branch information
ibuclaw committed May 3, 2018
1 parent 98c0826 commit 67f39a1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion gcc/d/d-codegen.cc
Original file line number Diff line number Diff line change
Expand Up @@ -1323,7 +1323,7 @@ component_ref (tree object, tree field)
gcc_assert (TREE_CODE (field) == FIELD_DECL);

/* Maybe rewrite: (e1, e2).field => (e1, e2.field) */
tree init = stabilize_expr (&object);
tree init = stabilize_expr2 (&object);

/* If the FIELD is from an anonymous aggregate, generate a reference
to the anonymous data member, and recur to find FIELD. */
Expand Down

0 comments on commit 67f39a1

Please sign in to comment.