From: Keith Randall Date: Sat, 24 Aug 2013 00:28:15 +0000 (-0700) Subject: cmd/gc: Reset haspointers computation. When converting from a X-Git-Tag: go1.2rc2~437 X-Git-Url: http://www.git.cypherpunks.su/?a=commitdiff_plain;h=b15a64e35de8bee777564a6553853238605d2556;p=gostls13.git cmd/gc: Reset haspointers computation. When converting from a slice type to an array type, the haspointer-ness may change. Before this change, we'd sometimes get types like [1]int marked as having pointers. R=golang-dev, bradfitz CC=golang-dev https://golang.org/cl/13189044 --- diff --git a/src/cmd/gc/sinit.c b/src/cmd/gc/sinit.c index 51c5f70222..19faf4e956 100644 --- a/src/cmd/gc/sinit.c +++ b/src/cmd/gc/sinit.c @@ -686,6 +686,7 @@ slicelit(int ctxt, Node *n, Node *var, NodeList **init) t->bound = mpgetfix(n->right->val.u.xval); t->width = 0; t->sym = nil; + t->haspointers = 0; dowidth(t); if(ctxt != 0) {