diff mbox

Go patch committed: Fix erroneous use of VEC

Message ID mcry5op9rem.fsf@dhcp-172-18-216-180.mtv.corp.google.com
State New
Headers show

Commit Message

Ian Lance Taylor May 18, 2012, 8:16 p.m. UTC
This patch to the Go frontend fixes an erroneous use of VEC, pointed out
by Diego.  The macro magic behind VEC is such that this didn't make any
difference.  Bootstrapped and tested on x86_64-unknown-linux-gnu.
Committed to mainline and 4.7 branch.

Ian
diff mbox

Patch

diff -r 4c5b81b8add0 go/gogo-tree.cc
--- a/go/gogo-tree.cc	Wed May 16 22:28:58 2012 -0700
+++ b/go/gogo-tree.cc	Fri May 18 13:13:48 2012 -0700
@@ -401,7 +401,7 @@ 
 
   // 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);