diff --git a/compile.c b/compile.c index e0d4bc5455..bf2c4f88a6 100644 --- a/compile.c +++ b/compile.c @@ -1624,7 +1624,7 @@ access_outer_variables(const rb_iseq_t *iseq, int level, ID id, bool write) if (!ovs) { ovs = iseq->body->outer_variables = rb_id_table_create(8); } - + if (rb_id_table_lookup(iseq->body->outer_variables, id, &val)) { if (write && !val) { rb_id_table_insert(iseq->body->outer_variables, id, Qtrue); diff --git a/iseq.c b/iseq.c index 449d3385cc..36cbe1dc29 100644 --- a/iseq.c +++ b/iseq.c @@ -607,7 +607,7 @@ prepare_iseq_build(rb_iseq_t *iseq, ISEQ_COMPILE_DATA(iseq)->option = option; ISEQ_COMPILE_DATA(iseq)->ivar_cache_table = NULL; ISEQ_COMPILE_DATA(iseq)->builtin_function_table = GET_VM()->builtin_function_table; - + if (option->coverage_enabled) { VALUE coverages = rb_get_coverages();