We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 70c7d01 commit 5d97cbfCopy full SHA for 5d97cbf
1 file changed
compiler/rustc_codegen_llvm/src/va_arg.rs
@@ -68,7 +68,8 @@ fn emit_direct_ptr_va_arg<'ll, 'tcx>(
68
{
69
let adjusted_size = bx.cx().const_i32((slot_size.bytes() - size.bytes()) as i32);
70
let adjusted = bx.inbounds_ptradd(addr, adjusted_size);
71
- (adjusted, addr_align)
+ // We're in the middle of a slot now, so use the type's alignment, not the slot's.
72
+ (adjusted, align)
73
} else {
74
(addr, addr_align)
75
}
0 commit comments