aboutsummaryrefslogtreecommitdiff
path: root/src/Sema.zig
diff options
context:
space:
mode:
authorJacob Young <jacobly0@users.noreply.github.com>2023-05-26 00:24:29 -0400
committerAndrew Kelley <andrew@ziglang.org>2023-06-10 20:47:55 -0700
commit9a738c0be54c9bda0e57de9da84f86fc73bd5198 (patch)
treeae754aeda344d8d9c359ccddb565155f45468d5e /src/Sema.zig
parentf37c0a459382fa033cefc9bb139277436a78b25e (diff)
downloadzig-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/Sema.zig')
-rw-r--r--src/Sema.zig2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/Sema.zig b/src/Sema.zig
index 5395bb63d1..e9c4958918 100644
--- a/src/Sema.zig
+++ b/src/Sema.zig
@@ -5807,7 +5807,7 @@ pub fn analyzeExport(
}
// This decl is alive no matter what, since it's being exported
- mod.markDeclAlive(exported_decl);
+ try mod.markDeclAlive(exported_decl);
try sema.maybeQueueFuncBodyAnalysis(exported_decl_index);
const gpa = sema.gpa;