aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorAlex Rønne Petersen <alex@alexrp.com>2025-10-19 22:40:15 +0200
committerAlex Rønne Petersen <alex@alexrp.com>2025-10-23 09:27:17 +0200
commitbeb507a1edadb2829478d066b80ea62ed537157a (patch)
treec6dabf5cecbc610b313b523bf8339ee05cec743d /src
parenta1441943e41014cfbce3105c4cdd9d3e0d137e4f (diff)
downloadzig-beb507a1edadb2829478d066b80ea62ed537157a.tar.gz
zig-beb507a1edadb2829478d066b80ea62ed537157a.zip
std.builtin: add CallingConvention.x86_64_x32
This was forgotten during the refactoring of std.builtin.CallingConvention. It mirrors mips64_n32 for MIPS.
Diffstat (limited to 'src')
-rw-r--r--src/Sema.zig1
-rw-r--r--src/codegen/llvm.zig1
2 files changed, 2 insertions, 0 deletions
diff --git a/src/Sema.zig b/src/Sema.zig
index be4b777eeb..47b5339222 100644
--- a/src/Sema.zig
+++ b/src/Sema.zig
@@ -9035,6 +9035,7 @@ pub fn handleExternLibName(
/// functions or there are no more other calling conventions that support variadic functions.
const calling_conventions_supporting_var_args = [_]std.builtin.CallingConvention.Tag{
.x86_64_sysv,
+ .x86_64_x32,
.x86_64_win,
.x86_sysv,
.x86_win,
diff --git a/src/codegen/llvm.zig b/src/codegen/llvm.zig
index 8c6f5f973f..3b3febf27e 100644
--- a/src/codegen/llvm.zig
+++ b/src/codegen/llvm.zig
@@ -11919,6 +11919,7 @@ fn toLlvmCallConvTag(cc_tag: std.builtin.CallingConvention.Tag, target: *const s
.x86_sysv,
.x86_win,
.x86_thiscall_mingw,
+ .x86_64_x32,
.aarch64_aapcs,
.aarch64_aapcs_darwin,
.aarch64_aapcs_win,