Commit 92d5f5ab by Eric Botcazou Committed by Eric Botcazou

utils2.c (gnat_rewrite_reference): Add another acceptable pattern for the RHS.

	* gcc-interface/utils2.c (gnat_rewrite_reference) <COMPOUND_EXPR>: Add
	another acceptable pattern for the RHS.

From-SVN: r227735
parent e7d76133
2015-09-14 Eric Botcazou <ebotcazou@adacore.com>
* gcc-interface/utils2.c (gnat_rewrite_reference) <COMPOUND_EXPR>: Add
another acceptable pattern for the RHS.
2015-07-24 Micahel Darling <darlingm@gmail.com>
PR other/66259
......
......@@ -2807,7 +2807,9 @@ gnat_rewrite_reference (tree ref, rewrite_fn func, void *data, tree *init)
gcc_assert (*init == NULL_TREE);
*init = TREE_OPERAND (ref, 0);
/* We expect only the pattern built in Call_to_gnu. */
gcc_assert (DECL_P (TREE_OPERAND (ref, 1)));
gcc_assert (DECL_P (TREE_OPERAND (ref, 1))
|| (TREE_CODE (TREE_OPERAND (ref, 1)) == COMPONENT_REF
&& DECL_P (TREE_OPERAND (TREE_OPERAND (ref, 1), 0))));
return TREE_OPERAND (ref, 1);
case CALL_EXPR:
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment