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.cpp6
1 files changed, 4 insertions, 2 deletions
diff --git a/source/slang/slang-check-conformance.cpp b/source/slang/slang-check-conformance.cpp
index d2335efbf..4d983b746 100644
--- a/source/slang/slang-check-conformance.cpp
+++ b/source/slang/slang-check-conformance.cpp
@@ -87,8 +87,10 @@ namespace Slang
// that `subType` has been proven to be *equal*
// to `superTypeDeclRef`.
//
- SLANG_UNEXPECTED("reflexive type witness");
- UNREACHABLE_RETURN(nullptr);
+ auto witness = m_astBuilder->create<TypeEqualityWitness>();
+ witness->sub = subType;
+ witness->sup = subType;
+ return witness;
}
// We might have one or more steps in the breadcrumb trail, e.g.: