authorgravatar for alex@alexrp.comAlex Rønne Petersen <alex@alexrp.com> 2026-01-30 23:58:47+01:00
committergravatar for alex@alexrp.comAlex Rønne Petersen <alex@alexrp.com> 2026-01-31 00:08:32+01:00
logc6538b70f5f0a5a1da8895c169c2cb9189148d85
tree0f320a75fc43c0300849c65dc3ea812f2b231c9b
parentfa988e88ed21485830a70276b5c7567efb122f80
signaturebadge-check Signed by SSH key SHA256:7B/LJ7bpR1eX8aCXSr4mtd5M45VMPKcx9zY8e95b5QM

llvm: handle packed structs in C ABI integer promotion


1 files changed, 1 insertions(+), 2 deletions(-)

src/codegen/llvm.zig+1-2
......@@ -12608,8 +12608,7 @@ fn ccAbiPromoteInt(cc: std.builtin.CallingConvention, zcu: *Zcu, ty: Type) ?std.
1260812608 }
1260912609 const int_info = switch (ty.zigTypeTag(zcu)) {
1261012610 .bool => Type.u1.intInfo(zcu),
12611 .int, .@"enum", .error_set => ty.intInfo(zcu),
12612 else => return null,
12611 else => if (ty.isAbiInt(zcu)) ty.intInfo(zcu) else return null,
1261312612 };
1261412613 return switch (target.os.tag) {
1261512614 .driverkit, .ios, .maccatalyst, .macos, .watchos, .tvos, .visionos => switch (int_info.bits) {