From 62d16a23b0ecd72dc624abd7e10b373c40adaa90 Mon Sep 17 00:00:00 2001 From: Yong He Date: Sat, 25 Jun 2022 13:05:35 -0700 Subject: Specialize generic/existential calls within generic functions. (#2294) * Expose internals of dce and use it to implement call graph walk. * Specialize calls in generic functions. * Fix clang error. Co-authored-by: Yong He --- source/slang/slang-ir-lower-generic-function.cpp | 1 + 1 file changed, 1 insertion(+) (limited to 'source/slang/slang-ir-lower-generic-function.cpp') diff --git a/source/slang/slang-ir-lower-generic-function.cpp b/source/slang/slang-ir-lower-generic-function.cpp index b50737c23..1bd785e8e 100644 --- a/source/slang/slang-ir-lower-generic-function.cpp +++ b/source/slang/slang-ir-lower-generic-function.cpp @@ -315,6 +315,7 @@ namespace Slang } // Update hash keys of globalNumberingMap, since the types are modified. sharedContext->sharedBuilderStorage.deduplicateAndRebuildGlobalNumberingMap(); + sharedContext->mapInterfaceRequirementKeyValue.Clear(); } void processModule() -- cgit v1.2.3