summaryrefslogtreecommitdiff
path: root/compile.c
diff options
context:
space:
mode:
authornobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2014-01-25 05:17:17 +0000
committernobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2014-01-25 05:17:17 +0000
commit7b8dc95b3a450b8f20049061054df0d1fc637239 (patch)
tree3a1adf4bbde2e4f700afeb17e03b0cbad13dd206 /compile.c
parent1f502d96618aad3b32bd94a8b01081adb2289d25 (diff)
compile.c: mark fstring
* compile.c (iseq_compile_each): fstring is need marking. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@44704 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 849d4a5..bd34fa8 100644
--- a/compile.c
+++ b/compile.c
@@ -5329,6 +5329,7 @@ iseq_compile_each(rb_iseq_t *iseq, LINK_ANCHOR *ret, NODE * node, int poped)
{
VALUE str = rb_fstring(node->nd_args->nd_head->nd_lit);
node->nd_args->nd_head->nd_lit = str;
+ iseq_add_mark_object(iseq, str);
COMPILE(ret, "recv", node->nd_recv);
COMPILE(ret, "value", node->nd_args->nd_next->nd_head);
ADD_INSN2(ret, line, opt_aset_with,