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