mirror of
https://github.com/mruby/mruby
synced 2026-06-08 16:11:16 +00:00
Merge pull request #527 from iij/pr-mipseb-sigsegv
Fix stack underflow in scope_body() caused by 18dd60c
This commit is contained in:
@@ -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));
|
||||
|
||||
Reference in New Issue
Block a user