From ca7bf79df3a3f5f4494912cb0572c36662755b9d Mon Sep 17 00:00:00 2001 From: Yong He Date: Wed, 12 Apr 2023 22:58:22 -0700 Subject: Combine lookupWitness lowering with specialization. (#2794) --- source/slang/slang-ir-specialize-dynamic-associatedtype-lookup.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'source/slang/slang-ir-specialize-dynamic-associatedtype-lookup.cpp') diff --git a/source/slang/slang-ir-specialize-dynamic-associatedtype-lookup.cpp b/source/slang/slang-ir-specialize-dynamic-associatedtype-lookup.cpp index e68ac5b73..1a1186cda 100644 --- a/source/slang/slang-ir-specialize-dynamic-associatedtype-lookup.cpp +++ b/source/slang/slang-ir-specialize-dynamic-associatedtype-lookup.cpp @@ -75,7 +75,7 @@ struct AssociatedTypeLookupSpecializationContext builder.setInsertInto(defaultBlock); } - auto resultWitnessTable = sharedContext->findWitnessTableEntry(witnessTable, key); + auto resultWitnessTable = findWitnessTableEntry(witnessTable, key); auto resultWitnessTableIDDecoration = resultWitnessTable->findDecoration(); SLANG_ASSERT(resultWitnessTableIDDecoration); -- cgit v1.2.3