Skip to content

Commit 7b86bfd

Browse files
committed
Add a workaround to make llvmcall work as before
1 parent 00c3890 commit 7b86bfd

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/ccall.cpp

+1-1
Original file line numberDiff line numberDiff line change
@@ -328,7 +328,7 @@ static Value *julia_to_native(Type *ty, jl_value_t *jt, Value *jv,
328328
return boxed(jv,ctx);
329329
}
330330

331-
if (!tojulia && julia_type_to_llvm(aty)->isAggregateType()) {
331+
if (!tojulia && vt != jl_pvalue_llvmt && julia_type_to_llvm(aty)->isAggregateType()) {
332332
// this value is expected to be a pointer in the julia codegen,
333333
// so it needs to be extracted first if not tojulia
334334
vt = vt->getContainedType(0);

0 commit comments

Comments
 (0)