Skip to content

Commit

Permalink
move forward edges stripping code to correct place
Browse files Browse the repository at this point in the history
  • Loading branch information
JeffBezanson committed Jan 29, 2025
1 parent e65af91 commit 540b3b1
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/staticdata.c
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand All @@ -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);
Expand Down

0 comments on commit 540b3b1

Please sign in to comment.