compiler: Fix erroneous use of VEC.
authorIan Lance Taylor <ian@gcc.gnu.org>
Fri, 18 May 2012 20:15:42 +0000 (20:15 +0000)
committerIan Lance Taylor <ian@gcc.gnu.org>
Fri, 18 May 2012 20:15:42 +0000 (20:15 +0000)
From-SVN: r187664

gcc/go/gofrontend/gogo-tree.cc

index 05417beeb550ec913f3798d92664daf103b25f49..bc33769a07a5f77c74579143b13757356c7bf4f6 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);