]> Cypherpunks repositories - gostls13.git/commitdiff
new new &Point{1,2}
authorRuss Cox <rsc@golang.org>
Tue, 6 Jan 2009 23:24:12 +0000 (15:24 -0800)
committerRuss Cox <rsc@golang.org>
Tue, 6 Jan 2009 23:24:12 +0000 (15:24 -0800)
R=ken
OCL=22168
CL=22168

src/cmd/gc/walk.c

index bea9356efe80296dc9707abf6e2151f1dbf37d8d..6c7c02838c73b63fa66f43ca1fdcb3bd140a8c42 100644 (file)
@@ -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);