summaryrefslogtreecommitdiff
path: root/parse/node.c
diff options
context:
space:
mode:
authorOri Bernstein <ori@eigenstate.org>2015-09-12 08:35:08 -0700
committerOri Bernstein <ori@eigenstate.org>2015-09-15 23:01:09 -0700
commitae9a74441cba3160943ad18bf500781143bff096 (patch)
tree1ae200fc755f3b726465a21a007710265e0ba981 /parse/node.c
parent80c52bc20a53ac4c1c304df7a1e470c0ab62c576 (diff)
downloadmc-ae9a74441cba3160943ad18bf500781143bff096.tar.gz
Allow 'var' in loop statements.
Diffstat (limited to 'parse/node.c')
-rw-r--r--parse/node.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/parse/node.c b/parse/node.c
index 3ecfbd0..f64303d 100644
--- a/parse/node.c
+++ b/parse/node.c
@@ -146,6 +146,7 @@ Node *mkloopstmt(Srcloc loc, Node *init, Node *cond, Node *incr, Node *body)
n->loopstmt.cond = cond;
n->loopstmt.step = incr;
n->loopstmt.body = body;
+ n->loopstmt.scope = mkstab();
return n;
}