From 18c95ba3b3e8f6eda27b39fc0a12318b05ef0de1 Mon Sep 17 00:00:00 2001 From: William Moses Date: Wed, 22 Jan 2025 20:49:33 -0600 Subject: [PATCH] Fix nan check (#2280) --- src/jlrt.jl | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/jlrt.jl b/src/jlrt.jl index 59acd1d231..1609e3e5d2 100644 --- a/src/jlrt.jl +++ b/src/jlrt.jl @@ -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)