Skip to content

Commit 683c5e7

Browse files
authored
move forward edges stripping code to correct place (#57197)
Fixes a regression in the size of stripped binaries.
1 parent c172a64 commit 683c5e7

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/staticdata.c

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2623,7 +2623,6 @@ static void strip_specializations_(jl_method_instance_t *mi)
26232623
if (inferred && inferred != jl_nothing) {
26242624
if (jl_options.strip_ir) {
26252625
record_field_change((jl_value_t**)&codeinst->inferred, jl_nothing);
2626-
record_field_change((jl_value_t**)&codeinst->edges, (jl_value_t*)jl_emptysvec);
26272626
}
26282627
else if (jl_options.strip_metadata) {
26292628
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)
26322631
}
26332632
}
26342633
}
2634+
if (jl_options.strip_ir)
2635+
record_field_change((jl_value_t**)&codeinst->edges, (jl_value_t*)jl_emptysvec);
26352636
if (jl_options.strip_metadata)
26362637
record_field_change((jl_value_t**)&codeinst->debuginfo, (jl_value_t*)jl_nulldebuginfo);
26372638
codeinst = jl_atomic_load_relaxed(&codeinst->next);

0 commit comments

Comments
 (0)