Commit 73e9c78b authored by Yukihiro "Matz" Matsumoto's avatar Yukihiro "Matz" Matsumoto

Merge pull request #493 from iij/pr-return-breaks-sp

Fix disappearance of a local variable when return statement is called
parents 2e4bf531 8d6f1b04
......@@ -1490,6 +1490,7 @@ codegen(codegen_scope *s, node *tree, int val)
else {
genop_peep(s, MKOP_AB(OP_RETURN, cursp(), OP_R_NORMAL), NOVAL);
}
push();
break;
case NODE_YIELD:
......
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