Skip to content

Commit

Permalink
remove redundant LOOP_NORMAL checkups in function:codegen. and fix mr…
Browse files Browse the repository at this point in the history
  • Loading branch information
skandhas committed Nov 23, 2012
1 parent 276b770 commit 7bae52f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/codegen.c
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand Down

0 comments on commit 7bae52f

Please sign in to comment.