From 9bc622476eb4bd52dd57484e582608dd42838b0d Mon Sep 17 00:00:00 2001 From: William Moses Date: Sun, 6 Aug 2023 10:16:54 -0400 Subject: [PATCH] Fix unhandled handler (#982) --- src/compiler.jl | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/compiler.jl b/src/compiler.jl index 656944578a..c16d1075d7 100644 --- a/src/compiler.jl +++ b/src/compiler.jl @@ -5415,7 +5415,7 @@ end function jl_unhandled_fwd(B, orig, gutils, normalR, shadowR) newo = new_from_original(gutils, orig) origops = collect(operands(orig)) - err = emit_error(LLVM.IRBuilder(B), orig, "Enzyme: unhandled forward for "*string(origops[end])) + err = emit_error(B, orig, "Enzyme: unhandled forward for "*string(origops[end])) API.moveBefore(newo, err, C_NULL) normal = (unsafe_load(normalR) != C_NULL) ? LLVM.Instruction(unsafe_load(normalR)) : nothing