mirror of
https://github.com/mruby/mruby
synced 2026-06-08 16:11:16 +00:00
remove redundant LOOP_NORMAL checkups in function:codegen. and fix #561
This commit is contained in:
+1
-1
@@ -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 {
|
||||
|
||||
Reference in New Issue
Block a user