diff --git a/compile.c b/compile.c index 111aef5293..87c2d7a856 100644 --- a/compile.c +++ b/compile.c @@ -8979,9 +8979,9 @@ static void ibf_dump_object_regexp(struct ibf_dump *dump, VALUE obj) { struct ibf_object_regexp regexp; - regexp.srcstr = RREGEXP_SRC(obj); + VALUE srcstr = RREGEXP_SRC(obj); regexp.option = (char)rb_reg_options(obj); - regexp.srcstr = (long)ibf_dump_object(dump, regexp.srcstr); + regexp.srcstr = (long)ibf_dump_object(dump, srcstr); IBF_WV(regexp); }