summaryrefslogtreecommitdiffstats
path: root/source/slang/slang-ir.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'source/slang/slang-ir.cpp')
-rw-r--r--source/slang/slang-ir.cpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/source/slang/slang-ir.cpp b/source/slang/slang-ir.cpp
index f6c662a98..29fbcc3c9 100644
--- a/source/slang/slang-ir.cpp
+++ b/source/slang/slang-ir.cpp
@@ -3890,6 +3890,8 @@ enum class TypeCastStyle
};
static TypeCastStyle _getTypeStyleId(IRType* type)
{
+ type = (IRType*)unwrapAttributedType(type);
+
if (auto vectorType = as<IRVectorType>(type))
{
return _getTypeStyleId(vectorType->getElementType());