projects
/
gcc.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
0ac3cb2
)
compiler: Fix erroneous use of VEC.
author
Ian Lance Taylor
<ian@gcc.gnu.org>
Fri, 18 May 2012 20:15:42 +0000
(20:15 +0000)
committer
Ian 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
patch
|
blob
|
history
diff --git
a/gcc/go/gofrontend/gogo-tree.cc
b/gcc/go/gofrontend/gogo-tree.cc
index 05417beeb550ec913f3798d92664daf103b25f49..bc33769a07a5f77c74579143b13757356c7bf4f6 100644
(file)
--- 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);