Skip to content

Commit

Permalink
Adjust stack position of NODE_RESCUE.
Browse files Browse the repository at this point in the history
  • Loading branch information
masamitsu-murase committed Feb 24, 2013
1 parent bbd50cc commit c6d2cde
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/codegen.c
Expand Up @@ -1083,6 +1083,7 @@ codegen(codegen_scope *s, node *tree, int val)
}
if (n3->cdr->cdr->car) {
codegen(s, n3->cdr->cdr->car, val);
if (val) pop();
}
tmp = new_label(s);
genop(s, MKOP_sBx(OP_JMP, exend));
Expand All @@ -1102,6 +1103,9 @@ codegen(codegen_scope *s, node *tree, int val)
if (tree->car) {
codegen(s, tree->car, val);
}
else if (val) {
push();
}
dispatch_linked(s, exend);
loop_pop(s, NOVAL);
}
Expand Down

0 comments on commit c6d2cde

Please sign in to comment.