aboutsummaryrefslogtreecommitdiff
path: root/src/Type.zig
diff options
context:
space:
mode:
Diffstat (limited to 'src/Type.zig')
-rw-r--r--src/Type.zig6
1 files changed, 5 insertions, 1 deletions
diff --git a/src/Type.zig b/src/Type.zig
index 52844f7ca5..9fcfec0846 100644
--- a/src/Type.zig
+++ b/src/Type.zig
@@ -1563,7 +1563,11 @@ pub fn intAbiAlignment(bits: u16, target: Target, use_llvm: bool) Alignment {
0 => .none,
1...8 => .@"1",
9...16 => .@"2",
- 17...64 => .@"4",
+ 17...32 => .@"4",
+ 33...64 => switch (target.os.tag) {
+ .uefi, .windows => .@"8",
+ else => .@"4",
+ },
else => .@"16",
},
.x86_64 => switch (bits) {