adjust regsiter stack for NODE_OP_ASGN that use OP_SEND

This commit is contained in:
Yukihiro Matsumoto
2012-10-23 14:15:29 +09:00
parent 09376f9b2a
commit 32f9cdc97d
+5 -2
View File
@@ -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: