compiler: Fix erroneous use of VEC.

From-SVN: r187664
This commit is contained in:
Ian Lance Taylor 2012-05-18 20:15:42 +00:00
parent 0ac3cb2a66
commit b8b552d99b

View 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);