Commit 7bae52fc authored by skandhas's avatar skandhas

remove redundant LOOP_NORMAL checkups in function:codegen. and fix #561

parent 276b7702
......@@ -1501,7 +1501,7 @@ codegen(codegen_scope *s, node *tree, int val)
case NODE_RETURN:
codegen(s, tree, VAL);
pop();
if (s->loop && s->loop->type != LOOP_NORMAL) {
if (s->loop) {
genop(s, MKOP_AB(OP_RETURN, cursp(), OP_R_RETURN));
}
else {
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment