Skip to content

Commit

Permalink
Fix nan check (#2280)
Browse files Browse the repository at this point in the history
  • Loading branch information
wsmoses authored Jan 23, 2025
1 parent c297307 commit 18c95ba
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/jlrt.jl
Original file line number Diff line number Diff line change
Expand Up @@ -999,7 +999,7 @@ function allocate_sret!(gutils::API.EnzymeGradientUtilsRef, @nospecialize(N::LLV
allocate_sret!(B, N)
end

function emit_error(B::LLVM.IRBuilder, @nospecialize(orig::Union{Nothing, LLVM.Instruction}), string::String, @nospecialize(errty::Type) = EnzymeRuntimeException)
function emit_error(B::LLVM.IRBuilder, @nospecialize(orig::Union{Nothing, LLVM.Instruction}), string::Union{String, LLVM.Value}, @nospecialize(errty::Type) = EnzymeRuntimeException)
curent_bb = position(B)
fn = LLVM.parent(curent_bb)
mod = LLVM.parent(fn)
Expand Down

0 comments on commit 18c95ba

Please sign in to comment.