From dabdfa6ccea0f1573f55cf746bf73f12f8c1aa1d Mon Sep 17 00:00:00 2001 From: Russ Cox Date: Tue, 6 Jan 2009 15:24:12 -0800 Subject: [PATCH] new new &Point{1,2} R=ken OCL=22168 CL=22168 --- src/cmd/gc/walk.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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);