aboutsummaryrefslogtreecommitdiff
path: root/src/codegen/spirv.zig
diff options
context:
space:
mode:
authorAndrew Kelley <andrew@ziglang.org>2024-03-25 16:32:18 -0700
committerGitHub <noreply@github.com>2024-03-25 16:32:18 -0700
commit405502286d28baee4dc3a6152282d1e6fe6c6472 (patch)
tree679088dc9e31d849582989a572a8685d9d7f2492 /src/codegen/spirv.zig
parentabadad464090a897813e35539d669f707ea3a8b4 (diff)
parentf8b8259e5caf30bd87151a0dcad7867768930e6b (diff)
downloadzig-405502286d28baee4dc3a6152282d1e6fe6c6472.tar.gz
zig-405502286d28baee4dc3a6152282d1e6fe6c6472.zip
Merge pull request #19414 from mlugg/comptime-mutable-memory-yet-again
compiler: implement analysis-local comptime-mutable memory
Diffstat (limited to 'src/codegen/spirv.zig')
-rw-r--r--src/codegen/spirv.zig3
1 files changed, 1 insertions, 2 deletions
diff --git a/src/codegen/spirv.zig b/src/codegen/spirv.zig
index 7117ae7e7a..10bbe2204d 100644
--- a/src/codegen/spirv.zig
+++ b/src/codegen/spirv.zig
@@ -1105,7 +1105,6 @@ const DeclGen = struct {
const mod = self.module;
switch (mod.intern_pool.indexToKey(ptr_val.toIntern()).ptr.addr) {
.decl => |decl| return try self.constantDeclRef(ptr_ty, decl),
- .mut_decl => |decl_mut| return try self.constantDeclRef(ptr_ty, decl_mut.decl),
.anon_decl => |anon_decl| return try self.constantAnonDeclRef(ptr_ty, anon_decl),
.int => |int| {
const ptr_id = self.spv.allocId();
@@ -1121,7 +1120,7 @@ const DeclGen = struct {
},
.eu_payload => unreachable, // TODO
.opt_payload => unreachable, // TODO
- .comptime_field => unreachable,
+ .comptime_field, .comptime_alloc => unreachable,
.elem => |elem_ptr| {
const parent_ptr_ty = Type.fromInterned(mod.intern_pool.typeOf(elem_ptr.base));
const parent_ptr_id = try self.constantPtr(parent_ptr_ty, Value.fromInterned(elem_ptr.base));