summaryrefslogtreecommitdiff
path: root/compile.c
diff options
context:
space:
mode:
authorYusuke Endoh <mame@ruby-lang.org>2019-09-08 01:21:19 +0900
committerYusuke Endoh <mame@ruby-lang.org>2019-09-08 01:22:26 +0900
commit4f63634af1fdce87c842f79fcb489ff2f7e4fee8 (patch)
tree2958cfa18f159dd4feb3949c7491a2957daa87cf /compile.c
parent2d017d612657ab2cffc320dcad679a8854b14a6b (diff)
compile.c (NODE_OP_ASGN1): Remove unneeded DECL_ANCHOR
Diffstat (limited to 'compile.c')
-rw-r--r--compile.c5
1 files changed, 1 insertions, 4 deletions
diff --git a/compile.c b/compile.c
index 4bae114756..7a8277155e 100644
--- a/compile.c
+++ b/compile.c
@@ -7009,7 +7009,6 @@ iseq_compile_each0(rb_iseq_t *iseq, LINK_ANCHOR *const ret, const NODE *node, in
break;
}
case NODE_OP_ASGN1: {
- DECL_ANCHOR(args);
VALUE argc;
unsigned int flag = 0;
unsigned int asgnflag = 0;
@@ -7051,10 +7050,8 @@ iseq_compile_each0(rb_iseq_t *iseq, LINK_ANCHOR *const ret, const NODE *node, in
boff = 1;
/* fall through */
default:
- INIT_ANCHOR(args);
- argc = setup_args(iseq, args, node->nd_args->nd_head, &flag, NULL);
+ argc = setup_args(iseq, ret, node->nd_args->nd_head, &flag, NULL);
CHECK(!NIL_P(argc));
- ADD_SEQ(ret, args);
}
ADD_INSN1(ret, line, dupn, FIXNUM_INC(argc, 1 + boff));
ADD_SEND_WITH_FLAG(ret, line, idAREF, argc, INT2FIX(flag));