summaryrefslogtreecommitdiff
path: root/source/slang/slang-check-type.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'source/slang/slang-check-type.cpp')
-rw-r--r--source/slang/slang-check-type.cpp4
1 files changed, 4 insertions, 0 deletions
diff --git a/source/slang/slang-check-type.cpp b/source/slang/slang-check-type.cpp
index 0ab3998d8..217d1b545 100644
--- a/source/slang/slang-check-type.cpp
+++ b/source/slang/slang-check-type.cpp
@@ -33,6 +33,10 @@ namespace Slang
{
return ptrType->getValueType();
}
+ else if (auto refType = as<RefType>(type))
+ {
+ return refType->getValueType();
+ }
return nullptr;
}