diff options
author | Ian Lance Taylor <ian@gcc.gnu.org> | 2012-05-18 20:15:42 +0000 |
---|---|---|
committer | Ian Lance Taylor <ian@gcc.gnu.org> | 2012-05-18 20:15:42 +0000 |
commit | b8b552d99b245b79f9969cecf38619f8183591f6 (patch) | |
tree | 4e53b7604f6fdc078ef477d51ce24e983229e533 /gcc/go | |
parent | 0ac3cb2a664f6aad18c607c52f94924c0db64c59 (diff) | |
download | gcc-b8b552d99b245b79f9969cecf38619f8183591f6.zip gcc-b8b552d99b245b79f9969cecf38619f8183591f6.tar.gz gcc-b8b552d99b245b79f9969cecf38619f8183591f6.tar.bz2 |
compiler: Fix erroneous use of VEC.
From-SVN: r187664
Diffstat (limited to 'gcc/go')
-rw-r--r-- | gcc/go/gofrontend/gogo-tree.cc | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/gcc/go/gofrontend/gogo-tree.cc b/gcc/go/gofrontend/gogo-tree.cc index 05417be..bc33769 100644 --- a/gcc/go/gofrontend/gogo-tree.cc +++ b/gcc/go/gofrontend/gogo-tree.cc @@ -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); |