summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authornormal <normal@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2015-12-08 04:32:23 +0000
committernormal <normal@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2015-12-08 04:32:23 +0000
commitf2a7ca746fe946784ab42e8dbc21cbc6342cee61 (patch)
tree473ed340e3acbff6b60ad66d5095cdb633e33974
parent14c46e5f1a4e2b905dcc17880fa40e09a4690b53 (diff)
compile.c (iseq_build_from_ary_body): avoid rb_ary_dup for CDHASH
This reverts r16587 ("compile.c (iseq_build_body): remove side effect from VM::InstructionSequence.load." as that change was obsoleted by r48705 ("mostly fix rb_iseq_load") git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@52938 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
-rw-r--r--compile.c1
1 files changed, 0 insertions, 1 deletions
diff --git a/compile.c b/compile.c
index abb53067591..bb0a07c940e 100644
--- a/compile.c
+++ b/compile.c
@@ -6407,7 +6407,6 @@ iseq_build_from_ary_body(rb_iseq_t *iseq, LINK_ANCHOR *anchor,
rb_hash_tbl_raw(map)->type = &cdhash_type;
op = rb_convert_type(op, T_ARRAY, "Array", "to_ary");
- op = rb_ary_dup(op);
for (i=0; i<RARRAY_LEN(op); i+=2) {
VALUE key = RARRAY_AREF(op, i);
VALUE sym = RARRAY_AREF(op, i+1);