diff --git a/src/compiler.jl b/src/compiler.jl index a9eb99c73c..c13f8e7cad 100644 --- a/src/compiler.jl +++ b/src/compiler.jl @@ -3802,7 +3802,7 @@ end continue end if EnzymeRules.is_inactive_from_sig(specTypes; world, method_table, caller) && - has_method( + Enzyme.has_method( Tuple{typeof(EnzymeRules.inactive),specTypes.parameters...}, world, method_table, diff --git a/src/rules/customrules.jl b/src/rules/customrules.jl index 6ef669d4e5..622e8f601e 100644 --- a/src/rules/customrules.jl +++ b/src/rules/customrules.jl @@ -984,7 +984,7 @@ function enzyme_custom_common_rev( end @safe_debug "Applying custom reverse rule" TT = rev_TT, functy=functy - rmi = my_methodinstance(functy, rev_TT, world) + rmi = my_methodinstance(Reverse, functy, rev_TT, world) if rmi === nothing rev_TT = Tuple{typeof(world),functy,rev_TT.parameters...}