aboutsummaryrefslogtreecommitdiff
path: root/src/Zcu.zig
diff options
context:
space:
mode:
authorAlex Rønne Petersen <alex@alexrp.com>2024-08-06 22:34:20 +0200
committerAndrew Kelley <andrew@ziglang.org>2024-08-12 16:08:28 -0700
commitd6f997259487fc01b1aa6d24bdc7b960c4aaec46 (patch)
tree8bc66b10c07bbc616f8a3016eac90a93b7b4a02a /src/Zcu.zig
parent6d23850108b5d3278f5b1cad395ff8da4fdfebeb (diff)
downloadzig-d6f997259487fc01b1aa6d24bdc7b960c4aaec46.tar.gz
zig-d6f997259487fc01b1aa6d24bdc7b960c4aaec46.zip
all: Handle spirv in addition to spirv(32,64) where applicable.
Some of this is arbitrary since spirv (as opposed to spirv32/spirv64) refers to the version with logical memory layout, i.e. no 'real' pointers. This change at least matches what clang does.
Diffstat (limited to 'src/Zcu.zig')
-rw-r--r--src/Zcu.zig3
1 files changed, 1 insertions, 2 deletions
diff --git a/src/Zcu.zig b/src/Zcu.zig
index bcb331b597..10fa45a62b 100644
--- a/src/Zcu.zig
+++ b/src/Zcu.zig
@@ -2910,6 +2910,7 @@ pub fn atomicPtrAlignment(
.s390x,
.wasm64,
.ve,
+ .spirv,
.spirv64,
.loongarch64,
=> 64,
@@ -2919,8 +2920,6 @@ pub fn atomicPtrAlignment(
=> 128,
.x86_64 => if (std.Target.x86.featureSetHas(target.cpu.features, .cx16)) 128 else 64,
-
- .spirv => @panic("TODO what should this value be?"),
};
if (ty.toIntern() == .bool_type) return .none;