call.c (extend_ref_init_temps_1): Recompute TREE_CONSTANT for the ADDR_EXPR.

* call.c (extend_ref_init_temps_1): Recompute TREE_CONSTANT for
	the ADDR_EXPR.

From-SVN: r193726
This commit is contained in:
Jason Merrill 2012-11-22 09:41:52 -05:00 committed by Jason Merrill
parent 03d670c8cc
commit 0c0cba54e8
2 changed files with 6 additions and 0 deletions

View File

@ -1,3 +1,8 @@
2012-11-22 Jason Merrill <jason@redhat.com>
* call.c (extend_ref_init_temps_1): Recompute TREE_CONSTANT for
the ADDR_EXPR.
2012-11-20 Diego Novillo <dnovillo@google.com>
Jakub Jelinek <jakub@redhat.com>

View File

@ -9188,6 +9188,7 @@ extend_ref_init_temps_1 (tree decl, tree init, vec<tree, va_gc> **cleanups)
*p = set_up_extended_ref_temp (decl, *p, cleanups, &subinit);
if (subinit)
init = build2 (COMPOUND_EXPR, TREE_TYPE (init), subinit, init);
recompute_tree_invariant_for_addr_expr (sub);
}
return init;
}