diff options
| author | Jacob Young <jacobly0@users.noreply.github.com> | 2023-05-26 00:24:29 -0400 |
|---|---|---|
| committer | Andrew Kelley <andrew@ziglang.org> | 2023-06-10 20:47:55 -0700 |
| commit | 9a738c0be54c9bda0e57de9da84f86fc73bd5198 (patch) | |
| tree | ae754aeda344d8d9c359ccddb565155f45468d5e /src/codegen/spirv.zig | |
| parent | f37c0a459382fa033cefc9bb139277436a78b25e (diff) | |
| download | zig-9a738c0be54c9bda0e57de9da84f86fc73bd5198.tar.gz zig-9a738c0be54c9bda0e57de9da84f86fc73bd5198.zip | |
Module: intern the values of decls when they are marked alive
I'm not sure if this is the right place for this to happen, and
it should become obsolete when comptime mutation is rewritten
and the remaining legacy value tags are remove, so keeping this
as a separate revertable commit.
Diffstat (limited to 'src/codegen/spirv.zig')
| -rw-r--r-- | src/codegen/spirv.zig | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/codegen/spirv.zig b/src/codegen/spirv.zig index 1a19bbdf91..43b6741493 100644 --- a/src/codegen/spirv.zig +++ b/src/codegen/spirv.zig @@ -256,7 +256,7 @@ pub const DeclGen = struct { /// Note: Function does not actually generate the decl. fn resolveDecl(self: *DeclGen, decl_index: Module.Decl.Index) !SpvModule.Decl.Index { const decl = self.module.declPtr(decl_index); - self.module.markDeclAlive(decl); + try self.module.markDeclAlive(decl); const entry = try self.decl_link.getOrPut(decl_index); if (!entry.found_existing) { |
