mirror of
https://github.com/golang/go
synced 2024-11-17 18:44:44 -07:00
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
This commit is contained in:
parent
221eef6808
commit
b15a64e35d
@ -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) {
|
||||
|
Loading…
Reference in New Issue
Block a user