aboutsummaryrefslogtreecommitdiff
path: root/src/InternPool.zig
diff options
context:
space:
mode:
authorDavid Rubin <daviru007@icloud.com>2025-03-20 18:50:12 -0700
committerMatthew Lugg <mlugg@mlugg.co.uk>2025-03-24 19:04:10 +0000
commit89db4f2e9390a75b73be3d20a95df78e376cfdd5 (patch)
treeb3d321a4f95efaaa808c6c9e676e2f8b0c4328e2 /src/InternPool.zig
parent972cab5bb027dce3d4f700e381bec3e1724c9504 (diff)
downloadzig-89db4f2e9390a75b73be3d20a95df78e376cfdd5.tar.gz
zig-89db4f2e9390a75b73be3d20a95df78e376cfdd5.zip
Sema: use unwrapped generic owner in `getFuncInstanceIes`
Diffstat (limited to 'src/InternPool.zig')
-rw-r--r--src/InternPool.zig2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/InternPool.zig b/src/InternPool.zig
index 04eb4854e7..bffed4f38e 100644
--- a/src/InternPool.zig
+++ b/src/InternPool.zig
@@ -9455,7 +9455,7 @@ pub fn getFuncInstanceIes(
try items.ensureUnusedCapacity(4);
const generic_owner = unwrapCoercedFunc(ip, arg.generic_owner);
- const generic_owner_ty = ip.indexToKey(ip.funcDeclInfo(arg.generic_owner).ty).func_type;
+ const generic_owner_ty = ip.indexToKey(ip.funcDeclInfo(generic_owner).ty).func_type;
// The strategy here is to add the function decl unconditionally, then to
// ask if it already exists, and if so, revert the lengths of the mutated