diff options
author | yui-knk <[email protected]> | 2023-09-27 21:58:16 +0900 |
---|---|---|
committer | Yuichiro Kaneko <[email protected]> | 2023-09-29 08:36:39 +0900 |
commit | 37a783a30cbcc0f5381c955885e525cf702bb506 (patch) | |
tree | 5c8159666ba31b333a9ed0635a57ed8d27a70e9b /compile.c | |
parent | 23bcdda37771bbc606535e0a6b0b428b5c26e847 (diff) |
Merge RNode_OP_ASGN2 and RNode_OP_ASGN22
Diffstat (limited to 'compile.c')
-rw-r--r-- | compile.c | 6 |
1 files changed, 3 insertions, 3 deletions
@@ -8708,8 +8708,8 @@ static int compile_op_asgn2(rb_iseq_t *iseq, LINK_ANCHOR *const ret, const NODE *const node, int popped) { const int line = nd_line(node); - ID atype = RNODE_OP_ASGN2(node)->nd_next->nd_mid; - ID vid = RNODE_OP_ASGN2(node)->nd_next->nd_vid, aid = rb_id_attrset(vid); + ID atype = RNODE_OP_ASGN2(node)->nd_mid; + ID vid = RNODE_OP_ASGN2(node)->nd_vid, aid = rb_id_attrset(vid); int asgnflag; LABEL *lfin = NEW_LABEL(line); LABEL *lcfin = NEW_LABEL(line); @@ -8769,7 +8769,7 @@ compile_op_asgn2(rb_iseq_t *iseq, LINK_ANCHOR *const ret, const NODE *const node asgnflag = COMPILE_RECV(ret, "NODE_OP_ASGN2#recv", node, RNODE_OP_ASGN2(node)->nd_recv); CHECK(asgnflag != -1); - if (RNODE_OP_ASGN2(node)->nd_next->nd_aid) { + if (RNODE_OP_ASGN2(node)->nd_aid) { lskip = NEW_LABEL(line); ADD_INSN(ret, node, dup); ADD_INSNL(ret, node, branchnil, lskip); |