aboutsummaryrefslogtreecommitdiffhomepage
path: root/parse.c
diff options
context:
space:
mode:
Diffstat (limited to 'parse.c')
-rw-r--r--parse.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/parse.c b/parse.c
index d3167ce..12f0fd7 100644
--- a/parse.c
+++ b/parse.c
@@ -1689,6 +1689,7 @@ stmt(struct parser *pr, struct function *fn)
expect(pr, ')', NULL);
if (!isscalar(ex.ty))
error(&ex.span, "'while' condition is not a scalar (%ty)", ex.ty);
+ stmtterm(pr);
EMITS {
end = newblk(fn);
if (!terminates) condjump(fn, &ex, begin, end);