summaryrefslogtreecommitdiffhomepage
path: root/src/codegen.c
diff options
context:
space:
mode:
authorTakashi Sogabe <[email protected]>2012-11-02 17:49:56 +0900
committerTakashi Sogabe <[email protected]>2012-11-02 17:49:56 +0900
commitc0c1c4da3212a469f8150c404c672e11db0148cc (patch)
tree49cbb1f6ee607100a9bfb18073d1dacdac9ae439 /src/codegen.c
parent3b86394afc66385a69e28313b60cf505dc37c621 (diff)
downloadmruby-c0c1c4da3212a469f8150c404c672e11db0148cc.tar.gz
mruby-c0c1c4da3212a469f8150c404c672e11db0148cc.zip
Fix stack underflow in scope_body()
Commit #18dd60c causes side effects. This patch fixes stack underflow in scope_body().
Diffstat (limited to 'src/codegen.c')
-rw-r--r--src/codegen.c1
1 files changed, 0 insertions, 1 deletions
diff --git a/src/codegen.c b/src/codegen.c
index ca2269d85..82e80ee41 100644
--- a/src/codegen.c
+++ b/src/codegen.c
@@ -635,7 +635,6 @@ scope_body(codegen_scope *s, node *tree)
genop(scope, MKOP_A(OP_STOP, 0));
}
else {
- pop_(scope);
if (scope->nregs == 0) {
genop(scope, MKOP_A(OP_LOADNIL, 0));
genop(scope, MKOP_AB(OP_RETURN, 0, OP_R_NORMAL));