diff --git a/src/compiler/interpreter.jl b/src/compiler/interpreter.jl index cdb13e6a74..60751a1004 100644 --- a/src/compiler/interpreter.jl +++ b/src/compiler/interpreter.jl @@ -201,7 +201,7 @@ function EnzymeInterpreter( return EnzymeInterpreter( cache_or_token, - Core.Compiler.OverlayMethodTable(world, mt), + mt == nothing ? Core.Compiler.InternalMethodTable(world) : Core.Compiler.OverlayMethodTable(world, mt), # Initially empty cache Vector{InferenceResult}(),