diff --git a/src/cmd/gc/walk.c b/src/cmd/gc/walk.c index bea9356efe8..6c7c02838c7 100644 --- a/src/cmd/gc/walk.c +++ b/src/cmd/gc/walk.c @@ -979,8 +979,8 @@ loop: nvar = nod(0, N, N); tempname(nvar, t); - nnew = nod(OMAKE, N, N); - nnew->type = t; + nnew = nod(ONEW, N, N); + nnew->type = n->left->type; nnew = newcompat(nnew); nas = nod(OAS, nvar, nnew);