mirror of
https://codeberg.org/ziglang/zig.git
synced 2026-03-08 02:44:43 +01:00
llvm: handle packed structs in C ABI integer promotion
This commit is contained in:
parent
fa988e88ed
commit
c6538b70f5
1 changed files with 1 additions and 2 deletions
|
|
@ -12608,8 +12608,7 @@ fn ccAbiPromoteInt(cc: std.builtin.CallingConvention, zcu: *Zcu, ty: Type) ?std.
|
|||
}
|
||||
const int_info = switch (ty.zigTypeTag(zcu)) {
|
||||
.bool => Type.u1.intInfo(zcu),
|
||||
.int, .@"enum", .error_set => ty.intInfo(zcu),
|
||||
else => return null,
|
||||
else => if (ty.isAbiInt(zcu)) ty.intInfo(zcu) else return null,
|
||||
};
|
||||
return switch (target.os.tag) {
|
||||
.driverkit, .ios, .maccatalyst, .macos, .watchos, .tvos, .visionos => switch (int_info.bits) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue