mirror of
https://github.com/ruby/ruby.git
synced 2022-11-09 12:17:21 -05:00
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
This commit is contained in:
parent
1f502d9661
commit
7b8dc95b3a
1 changed files with 1 additions and 0 deletions
|
@ -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,
|
||||
|
|
Loading…
Add table
Reference in a new issue