Skip to content

Commit 42219c2

Browse files
nobutmm1
authored andcommitted
compile.c: mark fstring
* compile.c (iseq_compile_each): fstring is need marking. git-svn-id: svn+ssh://svn.ruby-lang.org/ruby/trunk@44704 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
1 parent c74564c commit 42219c2

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

compile.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5326,6 +5326,7 @@ iseq_compile_each(rb_iseq_t *iseq, LINK_ANCHOR *ret, NODE * node, int poped)
53265326
{
53275327
VALUE str = rb_fstring(node->nd_args->nd_head->nd_lit);
53285328
node->nd_args->nd_head->nd_lit = str;
5329+
iseq_add_mark_object(iseq, str);
53295330
COMPILE(ret, "recv", node->nd_recv);
53305331
COMPILE(ret, "value", node->nd_args->nd_next->nd_head);
53315332
ADD_INSN2(ret, line, opt_aset_str,

0 commit comments

Comments
 (0)