OSDN Git Service

compiler: Fix erroneous use of VEC.
authorian <ian@138bc75d-0d04-0410-961f-82ee72b054a4>
Fri, 18 May 2012 20:15:58 +0000 (20:15 +0000)
committerian <ian@138bc75d-0d04-0410-961f-82ee72b054a4>
Fri, 18 May 2012 20:15:58 +0000 (20:15 +0000)
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/branches/gcc-4_7-branch@187665 138bc75d-0d04-0410-961f-82ee72b054a4

gcc/go/gofrontend/gogo-tree.cc

index 9cd5d8d..c746b9b 100644 (file)
@@ -401,7 +401,7 @@ Gogo::register_gc_vars(const std::vector<Named_object*>& var_gc,
 
   // Build a constructor for the struct.
 
-  VEC(constructor_elt,gc*) root_list_init = VEC_alloc(constructor_elt, gc, 2);
+  VEC(constructor_elt,gc)* root_list_init = VEC_alloc(constructor_elt, gc, 2);
 
   elt = VEC_quick_push(constructor_elt, root_list_init, NULL);
   field = TYPE_FIELDS(root_list_type);