aboutsummaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorlemon <lsof@mailbox.org>2023-06-04 20:14:43 +0200
committerlemon <lsof@mailbox.org>2023-06-04 20:14:43 +0200
commit92c125047769d66c71ba6874cc670c45595bc393 (patch)
tree9bb1c9623447681e5e278b90ec4a7d7f17079cb9
parent5f4daefd7554f04fd7cd3e416609ed021415a2f7 (diff)
; after do while
-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);