diff options
| author | Yukihiro "Matz" Matsumoto <[email protected]> | 2012-10-17 06:25:59 -0700 |
|---|---|---|
| committer | Yukihiro "Matz" Matsumoto <[email protected]> | 2012-10-17 06:25:59 -0700 |
| commit | 73e9c78bc40e9c9cfb359042f39925c084ced40e (patch) | |
| tree | 2d9d28fea9d3900f4b9d37101539a14a0db7e1f7 /src | |
| parent | 2e4bf53128e44985721c5aa5cb4b94d902dba299 (diff) | |
| parent | 8d6f1b04a1f326e3668fd1b2aa0978c2bb38b3ff (diff) | |
| download | mruby-73e9c78bc40e9c9cfb359042f39925c084ced40e.tar.gz mruby-73e9c78bc40e9c9cfb359042f39925c084ced40e.zip | |
Merge pull request #493 from iij/pr-return-breaks-sp
Fix disappearance of a local variable when return statement is called
Diffstat (limited to 'src')
| -rw-r--r-- | src/codegen.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/codegen.c b/src/codegen.c index f195c378a..27f217ebe 100644 --- a/src/codegen.c +++ b/src/codegen.c @@ -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: |
