aboutsummaryrefslogtreecommitdiff
path: root/src/InternPool.zig
diff options
context:
space:
mode:
authorJacob Young <jacobly0@users.noreply.github.com>2024-07-10 10:17:32 -0400
committerJacob Young <jacobly0@users.noreply.github.com>2024-07-10 11:20:08 -0400
commit8f292431b03055e789f75aa98888c0f49520e268 (patch)
tree711a6305c0269de5de1786791749854efeefac82 /src/InternPool.zig
parent3d2dfbe8289c2ecb45e1ba1fe79c4d7e21dd26c3 (diff)
downloadzig-8f292431b03055e789f75aa98888c0f49520e268.tar.gz
zig-8f292431b03055e789f75aa98888c0f49520e268.zip
InternPool: fix undefined decl fully qualified name
This is now possible after moving `File.Index` to `*File` mapping into intern pool.
Diffstat (limited to 'src/InternPool.zig')
-rw-r--r--src/InternPool.zig2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/InternPool.zig b/src/InternPool.zig
index 37ff1352a7..4dba928d18 100644
--- a/src/InternPool.zig
+++ b/src/InternPool.zig
@@ -8030,6 +8030,8 @@ fn finishFuncInstance(
decl.name = try ip.getOrPutStringFmt(gpa, tid, "{}__anon_{d}", .{
fn_owner_decl.name.fmt(ip), @intFromEnum(decl_index),
}, .no_embedded_nulls);
+ decl.fqn = try ip.namespacePtr(fn_owner_decl.src_namespace)
+ .internFullyQualifiedName(ip, gpa, tid, decl.name);
}
pub const EnumTypeInit = struct {