Commit 32f9cdc9 authored by Yukihiro Matsumoto's avatar Yukihiro Matsumoto

adjust regsiter stack for NODE_OP_ASGN that use OP_SEND

parent 09376f9b
...@@ -853,8 +853,11 @@ gen_assignment(codegen_scope *s, node *node, int sp, int val) ...@@ -853,8 +853,11 @@ gen_assignment(codegen_scope *s, node *node, int sp, int val)
case NODE_CALL: case NODE_CALL:
push(); push();
gen_call(s, node, attrsym(s, sym(node->cdr->car)), sp, val); gen_call(s, node, attrsym(s, sym(node->cdr->car)), sp, NOVAL);
val = NOVAL; /* push should have done in gen_call() */ pop();
if (val) {
genop_peep(s, MKOP_AB(OP_MOVE, cursp(), sp), val);
}
break; break;
default: default:
......
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