commit 28cb8872758fcbfbf3c366944a4866de3c5c758a (tree)
parent 04ffc1c963a86712cc4be413e1d62d252d51aad2
Author: mlugg <mlugg@mlugg.co.uk>
Date: Wed, 16 Oct 2024 12:30:45 +0100
Zcu: correct `callconvSupported` for self-hosted aarch64
Diffstat:
1 file changed, 4 insertions(+), 1 deletion(-)
diff --git a/src/Zcu.zig b/src/Zcu.zig
@@ -3611,7 +3611,10 @@ pub fn callconvSupported(zcu: *Zcu, cc: std.builtin.CallingConvention) union(enu
else => false,
},
.stage2_aarch64 => switch (cc) {
- .aarch64_aapcs => |opts| opts.incoming_stack_alignment == null,
+ .aarch64_aapcs,
+ .aarch64_aapcs_darwin,
+ .aarch64_aapcs_win,
+ => |opts| opts.incoming_stack_alignment == null,
.naked => true,
else => false,
},