We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 83ab648 commit 7bfcddfCopy full SHA for 7bfcddf
compiler/rustc_target/src/callconv/powerpc64.rs
@@ -58,8 +58,10 @@ where
58
59
// The AIX ABI expect byval for aggregates
60
// See https://github.com/llvm/llvm-project/blob/main/clang/lib/CodeGen/Targets/PPC.cpp.
61
+ // The incoming parameter is represented as a pointer in the IR,
62
+ // the alignment is associated with the size of the register. (align 8 for 64bit)
63
if !is_ret && abi == AIX {
- arg.pass_by_stack_offset(None);
64
+ arg.pass_by_stack_offset(Some(Align::from_bytes(8).unwrap()));
65
return;
66
}
67
0 commit comments