Skip to content

Commit 1b485b7

Browse files
committed
Filterout methods that are unreachable from native AbsInt
1 parent 2f90962 commit 1b485b7

File tree

1 file changed

+6
-2
lines changed

1 file changed

+6
-2
lines changed

src/precompile_utils.c

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -253,8 +253,12 @@ static void *jl_precompile_(jl_array_t *m, int external_linkage)
253253
size_t max_world = ~(size_t)0;
254254
if (mi != jl_atomic_load_relaxed(&mi->def.method->unspecialized) && !jl_isa_compileable_sig((jl_tupletype_t*)mi->specTypes, mi->sparam_vals, mi->def.method))
255255
mi = jl_get_specialization1((jl_tupletype_t*)mi->specTypes, jl_atomic_load_acquire(&jl_world_counter), &min_world, &max_world, 0);
256-
if (mi)
257-
jl_array_ptr_1d_push(m2, (jl_value_t*)mi);
256+
if (mi) {
257+
jl_value_t *ci = jl_rettype_inferred_addr(mi, min_world, max_world);
258+
if (ci != jl_nothing)
259+
jl_array_ptr_1d_push(m2, (jl_value_t*)mi);
260+
}
261+
258262
}
259263
else {
260264
assert(jl_is_simplevector(item));

0 commit comments

Comments
 (0)