summaryrefslogtreecommitdiffstats
path: root/source
diff options
context:
space:
mode:
Diffstat (limited to 'source')
-rw-r--r--source/slang/slang-lower-to-ir.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/source/slang/slang-lower-to-ir.cpp b/source/slang/slang-lower-to-ir.cpp
index 9ca22fead..e43f99b1e 100644
--- a/source/slang/slang-lower-to-ir.cpp
+++ b/source/slang/slang-lower-to-ir.cpp
@@ -8193,7 +8193,8 @@ struct DeclLoweringVisitor : DeclVisitor<DeclLoweringVisitor, LoweredValInfo>
// Make sure that all the entries in the witness table have been filled in,
// including any cases where there are sub-witness-tables for conformances
bool isExplicitExtern = false;
- if (!isImportedDecl(context, parentDecl, isExplicitExtern))
+ bool isImported = isImportedDecl(context, parentDecl, isExplicitExtern);
+ if (!isImported || isExplicitExtern)
{
Dictionary<WitnessTable*, IRWitnessTable*> mapASTToIRWitnessTable;
lowerWitnessTable(