diff --git a/src/staticdata.c b/src/staticdata.c index ff352cd8c152f..b5d6fb7cdd62a 100644 --- a/src/staticdata.c +++ b/src/staticdata.c @@ -2623,7 +2623,6 @@ static void strip_specializations_(jl_method_instance_t *mi) if (inferred && inferred != jl_nothing) { if (jl_options.strip_ir) { record_field_change((jl_value_t**)&codeinst->inferred, jl_nothing); - record_field_change((jl_value_t**)&codeinst->edges, (jl_value_t*)jl_emptysvec); } else if (jl_options.strip_metadata) { jl_value_t *stripped = strip_codeinfo_meta(mi->def.method, inferred, codeinst); @@ -2632,6 +2631,8 @@ static void strip_specializations_(jl_method_instance_t *mi) } } } + if (jl_options.strip_ir) + record_field_change((jl_value_t**)&codeinst->edges, (jl_value_t*)jl_emptysvec); if (jl_options.strip_metadata) record_field_change((jl_value_t**)&codeinst->debuginfo, (jl_value_t*)jl_nulldebuginfo); codeinst = jl_atomic_load_relaxed(&codeinst->next);