Skip to content

Commit 6ec2517

Browse files
committed
fix
1 parent ca26d73 commit 6ec2517

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/compiler.jl

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3812,6 +3812,7 @@ function move_sret_tofrom_roots!(builder::LLVM.IRBuilder, jltype::LLVM.LLVMType,
38123812
outloc = Enzyme.API.e_extract_value!(builder, sret, path)
38133813
store!(builder, outloc, loc)
38143814
elseif direction == RootPointerToSRetValue
3815+
loc = load!(builder, ty, loc)
38153816
sret = Enzyme.API.e_insert_value!(builder, sret, loc, path)
38163817
elseif direction == RootPointerToSRetPointer
38173818
outloc = inbounds_gep!(builder, jltype, sret, to_llvm(path))
@@ -4639,7 +4640,7 @@ function lower_convention(
46394640
"\nloweredReturn=",
46404641
loweredReturn
46414642
)
4642-
println(io, "Broken function")
4643+
println(io, "Broken lower convention")
46434644
end
46444645
throw(LLVM.LLVMException(msg))
46454646
end

0 commit comments

Comments
 (0)