* tree.c (get_target_expr): Handle VEC_INIT_EXPR.
From-SVN: r172631
This commit is contained in:
parent
612af520ba
commit
991e015686
@ -1,3 +1,7 @@
|
||||
2011-04-17 Jason Merrill <jason@redhat.com>
|
||||
|
||||
* tree.c (get_target_expr): Handle VEC_INIT_EXPR.
|
||||
|
||||
2011-04-17 Jan Hubicka <jh@suse.cz>
|
||||
|
||||
* class.c (cp_fold_obj_type_ref): Drop vtable_method.
|
||||
|
@ -605,6 +605,8 @@ get_target_expr (tree init)
|
||||
{
|
||||
if (TREE_CODE (init) == AGGR_INIT_EXPR)
|
||||
return build_target_expr (AGGR_INIT_EXPR_SLOT (init), init);
|
||||
else if (TREE_CODE (init) == VEC_INIT_EXPR)
|
||||
return build_target_expr (VEC_INIT_EXPR_SLOT (init), init);
|
||||
else
|
||||
return build_target_expr_with_type (init, TREE_TYPE (init));
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user