summaryrefslogtreecommitdiff
path: root/src/cmd/gc/sinit.c
diff options
context:
space:
mode:
authorKen Thompson <ken@golang.org>2009-09-05 20:32:24 -0700
committerKen Thompson <ken@golang.org>2009-09-05 20:32:24 -0700
commit3e1759a758d14be6e09f7241feb19e37a2258ad4 (patch)
tree3e030b4eb47778c52614ffdb1441d94d396cb241 /src/cmd/gc/sinit.c
parent4bd5147e35a0e4bd529a1ca2ae7b31fc9f0ab47e (diff)
downloadgolang-3e1759a758d14be6e09f7241feb19e37a2258ad4.tar.gz
composit literals
plateau - more to come R=rsc OCL=34413 CL=34413
Diffstat (limited to 'src/cmd/gc/sinit.c')
-rw-r--r--src/cmd/gc/sinit.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/cmd/gc/sinit.c b/src/cmd/gc/sinit.c
index da3084341..d8d2bc69b 100644
--- a/src/cmd/gc/sinit.c
+++ b/src/cmd/gc/sinit.c
@@ -51,6 +51,7 @@ init1(Node *n, NodeList **out)
case OAS:
if(n->defn->left != n)
goto bad;
+ n->dodata = 1;
init1(n->defn->right, out);
if(debug['j'])
print("%S\n", n->sym);
@@ -63,7 +64,7 @@ init1(Node *n, NodeList **out)
bad:
dump("defn", n->defn);
- fatal("bad defn");
+ fatal("init1: bad defn");
}
static void