update call

This commit is contained in:
Henry Jiang 2024-10-03 12:36:36 -04:00
parent 7d27ceb954
commit d09e27d54a

View File

@ -56,9 +56,10 @@ fn classify<'a, Ty, C>(cx: &C, arg: &mut ArgAbi<'a, Ty>, abi: ABI, is_ret: bool)
return;
}
// The AIX ABI expect byval for aggregates
// See https://github.com/llvm/llvm-project/blob/main/clang/lib/CodeGen/Targets/PPC.cpp.
if !is_ret && abi == AIX {
arg.make_indirect_byval(None);
arg.pass_by_stack_offset(None);
return;
}