Skip to content

Commit fd458f8

Browse files
dpinolDani Pinyol
andauthored
Fix non Binding & Nothing method invalidations (#446) (#447)
Co-authored-by: Dani Pinyol <[email protected]>
1 parent 671c561 commit fd458f8

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/invalidations.jl

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -191,7 +191,7 @@ struct MethodInvalidations <: AbstractMethodInvalidations
191191
mt_disable::Vector{MethodInstance}
192192
end
193193
methinv_storage() = Pair{Type,InstanceNode}[], InstanceNode[], MethodInstance[], MethodInstance[]
194-
function MethodInvalidations(method::Method, reason::Symbol)
194+
function MethodInvalidations(method, reason::Symbol)
195195
MethodInvalidations(method, reason, methinv_storage()...)
196196
end
197197

@@ -580,6 +580,7 @@ function invalidation_trees(list::InvalidationLists; consolidate::Bool=true, kwa
580580
for (edge, node) in etree.mt_backedges
581581
for mtree in mtrees
582582
mtree.reason === :deleting || continue
583+
isnothing(mtree.method) && continue
583584
mtree.method.sig <: edge || continue
584585
# This edge is covered by the deleted method
585586
join_invalidations!(mtree.mt_backedges, edge => node)

0 commit comments

Comments
 (0)