Skip to content

Commit 313bc63

Browse files
committed
Hack to discover non-CodeInstances
1 parent 3cf0ff1 commit 313bc63

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

base/compiler/cicache.jl

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -56,6 +56,8 @@ function get(wvc::WorldView{InternalCodeCache}, mi::MethodInstance, default)
5656
r = ccall(:jl_rettype_inferred, Any, (Any, UInt, UInt), mi, first(wvc.worlds), last(wvc.worlds))
5757
if r === nothing
5858
return default
59+
elseif !isa(r, CodeInstance)
60+
println("Expected CodeInstance for ", mi)
5961
end
6062
return r::CodeInstance
6163
end

0 commit comments

Comments
 (0)