std.builtin.CallingConvention: don't provide bogus winapi value

This commit is contained in:
mlugg 2024-10-15 02:28:31 +01:00
parent 2d9a167cd2
commit 6657982e56
No known key found for this signature in database
GPG Key ID: 3F5B7DCCBF4AF02E

View File

@ -176,8 +176,8 @@ pub const CallingConvention = union(enum(u8)) {
pub const winapi: CallingConvention = switch (builtin.target.cpu.arch) {
.x86_64 => .{ .x86_64_win = .{} },
.x86 => .{ .x86_stdcall = .{} },
.aarch64, .aarch64_be => .{ .aarch64_aapcs_win = .{} },
.arm, .armeb, .thumb, .thumbeb => .{ .arm_aapcs_vfp = .{} },
.aarch64 => .{ .aarch64_aapcs_win = .{} },
.thumb => .{ .arm_aapcs_vfp = .{} },
else => unreachable,
};