aboutsummaryrefslogtreecommitdiffstats
path: root/compile.c
diff options
context:
space:
mode:
authoryui-knk <spiketeika@gmail.com>2023-09-27 21:58:16 +0900
committerYuichiro Kaneko <spiketeika@gmail.com>2023-09-29 08:36:39 +0900
commit37a783a30cbcc0f5381c955885e525cf702bb506 (patch)
tree5c8159666ba31b333a9ed0635a57ed8d27a70e9b /compile.c
parent23bcdda37771bbc606535e0a6b0b428b5c26e847 (diff)
downloadruby-37a783a30cbcc0f5381c955885e525cf702bb506.tar.gz
Merge RNode_OP_ASGN2 and RNode_OP_ASGN22
Diffstat (limited to 'compile.c')
-rw-r--r--compile.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/compile.c b/compile.c
index 34113a4387..3b4624d0b4 100644
--- a/compile.c
+++ b/compile.c
@@ -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);