mirror of
https://github.com/mruby/mruby
synced 2026-06-08 16:11:16 +00:00
adjust regsiter stack for NODE_OP_ASGN that use OP_SEND
This commit is contained in:
+5
-2
@@ -853,8 +853,11 @@ gen_assignment(codegen_scope *s, node *node, int sp, int val)
|
||||
|
||||
case NODE_CALL:
|
||||
push();
|
||||
gen_call(s, node, attrsym(s, sym(node->cdr->car)), sp, val);
|
||||
val = NOVAL; /* push should have done in gen_call() */
|
||||
gen_call(s, node, attrsym(s, sym(node->cdr->car)), sp, NOVAL);
|
||||
pop();
|
||||
if (val) {
|
||||
genop_peep(s, MKOP_AB(OP_MOVE, cursp(), sp), val);
|
||||
}
|
||||
break;
|
||||
|
||||
default:
|
||||
|
||||
Reference in New Issue
Block a user