summaryrefslogtreecommitdiffstats
path: root/source/slang/slang-mangle.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'source/slang/slang-mangle.cpp')
-rw-r--r--source/slang/slang-mangle.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/source/slang/slang-mangle.cpp b/source/slang/slang-mangle.cpp
index 58d6aaae3..da5099934 100644
--- a/source/slang/slang-mangle.cpp
+++ b/source/slang/slang-mangle.cpp
@@ -217,8 +217,8 @@ namespace Slang
else if (auto arrType = dynamicCast<ArrayExpressionType>(type))
{
emitRaw(context, "a");
- emitSimpleIntVal(context, arrType->arrayLength);
- emitType(context, arrType->baseType);
+ emitSimpleIntVal(context, arrType->getElementCount());
+ emitType(context, arrType->getElementType());
}
else if( auto taggedUnionType = dynamicCast<TaggedUnionType>(type) )
{