summaryrefslogtreecommitdiff
path: root/source/slang/slang-ir-util.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'source/slang/slang-ir-util.cpp')
-rw-r--r--source/slang/slang-ir-util.cpp5
1 files changed, 4 insertions, 1 deletions
diff --git a/source/slang/slang-ir-util.cpp b/source/slang/slang-ir-util.cpp
index 7775fdb91..1f13eb754 100644
--- a/source/slang/slang-ir-util.cpp
+++ b/source/slang/slang-ir-util.cpp
@@ -53,7 +53,10 @@ bool isComInterfaceType(IRType* type)
{
return true;
}
-
+ if (auto witnessTableType = as<IRWitnessTableTypeBase>(type))
+ {
+ return isComInterfaceType((IRType*)witnessTableType->getConformanceType());
+ }
if (auto ptrType = as<IRNativePtrType>(type))
{
auto valueType = ptrType->getValueType();