diff --git a/src/errors.jl b/src/errors.jl index 84a4cb0652..065248a845 100644 --- a/src/errors.jl +++ b/src/errors.jl @@ -606,7 +606,7 @@ end if isa(cur, LLVM.InsertValueInst) B2 = IRBuilder() - position!(B2, LLVM.API.LLVMGetNextInstruction(cur)) + position!(B2, LLVM.Instruction(LLVM.API.LLVMGetNextInstruction(cur))) lhs = make_replacement(operands(cur)[1], B2) if illegal