mirror of
https://github.com/ziglang/zig.git
synced 2026-02-12 20:37:54 +00:00
x86_64: fix C abi argument passing in memory
This commit is contained in:
parent
877393d17a
commit
cfa247e53b
@ -13755,7 +13755,8 @@ fn resolveCallingConventionValues(
|
||||
}
|
||||
|
||||
const param_size: u31 = @intCast(ty.abiSize(mod));
|
||||
const param_align: u31 = @intCast(ty.abiAlignment(mod).toByteUnitsOptional().?);
|
||||
const param_align: u31 =
|
||||
@intCast(@max(ty.abiAlignment(mod).toByteUnitsOptional().?, 8));
|
||||
result.stack_byte_count =
|
||||
mem.alignForward(u31, result.stack_byte_count, param_align);
|
||||
arg.* = .{ .load_frame = .{
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user