summaryrefslogtreecommitdiff
path: root/source/slang/slang-check-conformance.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'source/slang/slang-check-conformance.cpp')
-rw-r--r--source/slang/slang-check-conformance.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/source/slang/slang-check-conformance.cpp b/source/slang/slang-check-conformance.cpp
index 9a44cbbb4..ffa037996 100644
--- a/source/slang/slang-check-conformance.cpp
+++ b/source/slang/slang-check-conformance.cpp
@@ -60,7 +60,7 @@ namespace Slang
return result;
result = checkAndConstructSubtypeWitness(subType, superType, isSubTypeOptions);
- if(int(isSubTypeOptions) & int(IsSubTypeOptions::NotReadyForLookup))
+ if(!result && (int(isSubTypeOptions) & int(IsSubTypeOptions::NoCaching)))
return result;
getShared()->cacheSubtypeWitness(subType, superType, result);
@@ -112,7 +112,7 @@ namespace Slang
// tangling convertibility into it.
// First, make sure both sub type and super type decl are ready for lookup.
- if ( !(int(isSubTypeOptions) & int(IsSubTypeOptions::NotReadyForLookup)) )
+ if ( !(int(isSubTypeOptions) & int(IsSubTypeOptions::NoCaching)) )
{
if (auto subDeclRefType = as<DeclRefType>(subType))
{