diff options
author | Ken Thompson <ken@golang.org> | 2009-09-05 20:32:24 -0700 |
---|---|---|
committer | Ken Thompson <ken@golang.org> | 2009-09-05 20:32:24 -0700 |
commit | 3e1759a758d14be6e09f7241feb19e37a2258ad4 (patch) | |
tree | 3e030b4eb47778c52614ffdb1441d94d396cb241 /src/cmd/gc/init.c | |
parent | 4bd5147e35a0e4bd529a1ca2ae7b31fc9f0ab47e (diff) | |
download | golang-3e1759a758d14be6e09f7241feb19e37a2258ad4.tar.gz |
composit literals
plateau - more to come
R=rsc
OCL=34413
CL=34413
Diffstat (limited to 'src/cmd/gc/init.c')
-rw-r--r-- | src/cmd/gc/init.c | 9 |
1 files changed, 2 insertions, 7 deletions
diff --git a/src/cmd/gc/init.c b/src/cmd/gc/init.c index 6e31b7325..ef97459eb 100644 --- a/src/cmd/gc/init.c +++ b/src/cmd/gc/init.c @@ -152,8 +152,7 @@ fninit(NodeList *n) a->nbody = list(a->nbody, b); // (6) - a = nod(OASOP, gatevar, nodintconst(1)); - a->etype = OADD; + a = nod(OAS, gatevar, nodintconst(1)); r = list(r, a); // (7) @@ -186,8 +185,7 @@ fninit(NodeList *n) } // (10) - a = nod(OASOP, gatevar, nodintconst(1)); - a->etype = OADD; + a = nod(OAS, gatevar, nodintconst(2)); r = list(r, a); // (11) @@ -197,10 +195,7 @@ fninit(NodeList *n) exportsym(fn->nname); fn->nbody = r; - - initflag = 1; // flag for loader static initialization funcbody(fn); typecheck(&fn, Etop); funccompile(fn); - initflag = 0; } |