Skip to content

Commit

Permalink
fix constructor
Browse files Browse the repository at this point in the history
  • Loading branch information
vchuravy committed Jun 1, 2024
1 parent e9de69d commit 7818df6
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/compiler/interpreter.jl
Original file line number Diff line number Diff line change
Expand Up @@ -37,11 +37,11 @@ end
mode::API.CDerivativeMode
end

function EnzymeInterpreter(cache::CodeCache, mt::Union{Nothing,Core.MethodTable}, world::UInt, mode::API.CDerivativeMode)
function EnzymeInterpreter(cache_or_token, mt::Union{Nothing,Core.MethodTable}, world::UInt, mode::API.CDerivativeMode)
@assert world <= Base.get_world_counter()

return EnzymeInterpreter(
cache,
cache_or_token,
mt,

# Initially empty cache
Expand Down

0 comments on commit 7818df6

Please sign in to comment.