Skip to content

Commit 7a1590f

Browse files
committed
Fix type instability in invalidate_code_for_globalref!
1 parent 8602127 commit 7a1590f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

base/invalidation.jl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -149,7 +149,7 @@ function invalidate_code_for_globalref!(b::Core.Binding, invalidated_bpart::Core
149149
usings_backedges = ccall(:jl_get_module_usings_backedges, Any, (Any,), gr.mod)
150150
if usings_backedges !== nothing
151151
for user::Module in usings_backedges::Vector{Any}
152-
user_binding = ccall(:jl_get_module_binding_or_nothing, Any, (Any, Any), user, gr.name)
152+
user_binding = ccall(:jl_get_module_binding_or_nothing, Any, (Any, Any), user, gr.name)::Union{Core.Binding, Nothing}
153153
user_binding === nothing && continue
154154
isdefined(user_binding, :partitions) || continue
155155
latest_bpart = user_binding.partitions

0 commit comments

Comments
 (0)