We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 83ab648 commit 51dcfaeCopy full SHA for 51dcfae
compiler/rustc_target/src/callconv/powerpc64.rs
@@ -58,8 +58,9 @@ 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
+ // natural alignment of byval pointer are align 4
62
if !is_ret && abi == AIX {
- arg.pass_by_stack_offset(None);
63
+ arg.pass_by_stack_offset(Some(Align::from_bytes(4).unwrap()));
64
return;
65
}
66
0 commit comments