Skip to content

Commit 1ceb288

Browse files
committed
Don't filter Core methods from newly-inferred list
This allows constructors like `Tuple{Type{Vector{Foo}}, UndefInitializer, Tuple{Int}}` to precompile as usual
1 parent 1ebf31f commit 1ceb288

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

base/compiler/typeinfer.jl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -404,7 +404,7 @@ function cache_result!(interp::AbstractInterpreter, result::InferenceResult)
404404
inferred_result = transform_result_for_cache(interp, linfo, valid_worlds, result)
405405
code_cache(interp)[linfo] = ci = CodeInstance(interp, result, inferred_result, valid_worlds)
406406
m = linfo.def
407-
if isa(m, Method) && m.module != Core
407+
if isa(m, Method)
408408
ccall(:jl_push_newly_inferred, Cvoid, (Any,), ci)
409409
end
410410
end

0 commit comments

Comments
 (0)