while|until should have the value from break; fix #3735

This commit is contained in:
Yukihiro "Matz" Matsumoto
2017-07-12 14:56:48 +09:00
parent e5fbe350b3
commit 7fa9321c18
+1 -1
View File
@@ -2980,10 +2980,10 @@ loop_break(codegen_scope *s, node *tree)
static void
loop_pop(codegen_scope *s, int val)
{
dispatch_linked(s, s->loop->pc3);
if (val) {
genop(s, MKOP_A(OP_LOADNIL, cursp()));
}
dispatch_linked(s, s->loop->pc3);
s->loop = s->loop->prev;
if (val) push();
}