diff options
author | Jason Merrill <jason@redhat.com> | 2011-04-17 20:50:21 -0400 |
---|---|---|
committer | Jason Merrill <jason@gcc.gnu.org> | 2011-04-17 20:50:21 -0400 |
commit | 991e015686a39b50e4a756b463d250aeb07267f6 (patch) | |
tree | 1f69f4bbf6bd028ab9508540bc02fd6382eee4ce /gcc | |
parent | 612af520baed9a651d7f357df139539f33a901e7 (diff) | |
download | gcc-991e015686a39b50e4a756b463d250aeb07267f6.zip gcc-991e015686a39b50e4a756b463d250aeb07267f6.tar.gz gcc-991e015686a39b50e4a756b463d250aeb07267f6.tar.bz2 |
* tree.c (get_target_expr): Handle VEC_INIT_EXPR.
From-SVN: r172631
Diffstat (limited to 'gcc')
-rw-r--r-- | gcc/cp/ChangeLog | 4 | ||||
-rw-r--r-- | gcc/cp/tree.c | 2 |
2 files changed, 6 insertions, 0 deletions
diff --git a/gcc/cp/ChangeLog b/gcc/cp/ChangeLog index cd71a1d..04812d1 100644 --- a/gcc/cp/ChangeLog +++ b/gcc/cp/ChangeLog @@ -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. diff --git a/gcc/cp/tree.c b/gcc/cp/tree.c index ad004bb..25f2c32 100644 --- a/gcc/cp/tree.c +++ b/gcc/cp/tree.c @@ -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)); } |