Skip to content

Commit

Permalink
fix nothing error
Browse files Browse the repository at this point in the history
  • Loading branch information
wsmoses committed Dec 1, 2024
1 parent c94c04e commit f7b523f
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions lib/EnzymeCore/src/rules.jl
Original file line number Diff line number Diff line change
Expand Up @@ -209,11 +209,13 @@ function isapplicable(@nospecialize(f), @nospecialize(TT);
end
fullmatch = Core.Compiler._any(match::Core.MethodMatch->match.fully_covers, matches)
if !fullmatch
add_mt_backedge!(caller, mt, sig)
if caller isa Core.MethodInstance
add_mt_backedge!(caller, mt, sig)
end
end
if Core.Compiler.isempty(matches)
return false
else
elseif caller isa Core.MethodInstance
for i = 1:Core.Compiler.length(matches)
match = Core.Compiler.getindex(matches, i)::Core.MethodMatch
edge = Core.Compiler.specialize_method(match)::Core.MethodInstance
Expand Down

0 comments on commit f7b523f

Please sign in to comment.