summaryrefslogtreecommitdiff
path: root/parse/gram.y
diff options
context:
space:
mode:
authorOri Bernstein <ori@eigenstate.org>2015-09-24 22:39:28 -0700
committerOri Bernstein <ori@eigenstate.org>2015-09-24 22:39:28 -0700
commitdd1dcc663ada21c70e41003564e5c57d671981ac (patch)
treebad8899e9198efafed8684be842521f1e60ae4d1 /parse/gram.y
parent53bc10145695df7160e374bca21f4a9510e3fd7d (diff)
downloadmc-dd1dcc663ada21c70e41003564e5c57d671981ac.tar.gz
Put the closure at the function level.
Diffstat (limited to 'parse/gram.y')
-rw-r--r--parse/gram.y4
1 files changed, 2 insertions, 2 deletions
diff --git a/parse/gram.y b/parse/gram.y
index 720fe0e..965c02a 100644
--- a/parse/gram.y
+++ b/parse/gram.y
@@ -908,7 +908,7 @@ blkbody : decl {
size_t i;
Node *n, *d, *u;
- $$ = mkblock($1.loc, mkstab());
+ $$ = mkblock($1.loc, mkstab(0));
for (i = 0; i < $1.nn; i++) {
d = $1.nl[i];
putdcl($$->block.scope, d);
@@ -922,7 +922,7 @@ blkbody : decl {
}
}
| stmt {
- $$ = mkblock(curloc, mkstab());
+ $$ = mkblock(curloc, mkstab(0));
if ($1)
lappend(&$$->block.stmts, &$$->block.nstmts, $1);
}