Skip to content

Commit

Permalink
fixup
Browse files Browse the repository at this point in the history
  • Loading branch information
wsmoses committed Dec 14, 2024
1 parent 9e50cc5 commit 2d3f43b
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/Enzyme.jl
Original file line number Diff line number Diff line change
Expand Up @@ -370,7 +370,7 @@ Enzyme.autodiff(ReverseWithPrimal, x->x*x, Active(3.0))
FTy = Core.Typeof(f.val)

rt = if A isa UnionAll
Compiler.primal_return_type(mode, FTy, tt)
Compiler.primal_return_type(Reverse, FTy, tt)
else
eltype(A)
end
Expand Down
2 changes: 1 addition & 1 deletion src/utils.jl
Original file line number Diff line number Diff line change
Expand Up @@ -320,7 +320,7 @@ end
# XXX: version of Base.method_instance that uses a function type
@inline function my_methodinstance(@nospecialize(mode::Union{Nothing, EnzymeCore.ForwardMode, EnzymeCore.ReverseMode}), @nospecialize(ft::Type), @nospecialize(tt::Type))::Core.MethodInstance
sig = GPUCompiler.signature_type_by_tt(ft, tt)
return prevmethodinstance(mode, ft, tt, world)::Core.MethodInstance
return prevmethodinstance(mode, ft, tt)::Core.MethodInstance
end

export my_methodinstance
Expand Down

0 comments on commit 2d3f43b

Please sign in to comment.