summaryrefslogtreecommitdiffstats
path: root/compile.c
diff options
context:
space:
mode:
authormame <mame@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2008-05-25 08:52:57 +0000
committermame <mame@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2008-05-25 08:52:57 +0000
commit32820fb1a103788aecc3d3a2c4833cff36147ea1 (patch)
tree61c609162e1ba7c2a7e188dcd9cb70b1772288eb /compile.c
parenta1a274b95d3533d623fd35a4ba5f333a46eef2ae (diff)
downloadruby-32820fb1a103788aecc3d3a2c4833cff36147ea1.tar.gz
ruby-32820fb1a103788aecc3d3a2c4833cff36147ea1.tar.xz
ruby-32820fb1a103788aecc3d3a2c4833cff36147ea1.zip
* compile.c (iseq_build_body): remove side effect from
VM::InstructionSequence.load. git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@16587 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'compile.c')
-rw-r--r--compile.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/compile.c b/compile.c
index 03b433d57..cc068b112 100644
--- a/compile.c
+++ b/compile.c
@@ -4955,6 +4955,7 @@ iseq_build_body(rb_iseq_t *iseq, LINK_ANCHOR *anchor,
{
int i;
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 sym = rb_ary_entry(op, i+1);
LABEL *label =