From b15a64e35de8bee777564a6553853238605d2556 Mon Sep 17 00:00:00 2001 From: Keith Randall Date: Fri, 23 Aug 2013 17:28:15 -0700 Subject: [PATCH] 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 --- src/cmd/gc/sinit.c | 1 + 1 file changed, 1 insertion(+) 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) { -- 2.48.1