From 89db4f2e9390a75b73be3d20a95df78e376cfdd5 Mon Sep 17 00:00:00 2001 From: David Rubin Date: Thu, 20 Mar 2025 18:50:12 -0700 Subject: Sema: use unwrapped generic owner in `getFuncInstanceIes` --- src/InternPool.zig | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/InternPool.zig') 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 -- cgit v1.2.3