diff options
Diffstat (limited to 'source/slang/syntax.cpp')
| -rw-r--r-- | source/slang/syntax.cpp | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/source/slang/syntax.cpp b/source/slang/syntax.cpp index 85a702726..ab4a5f94c 100644 --- a/source/slang/syntax.cpp +++ b/source/slang/syntax.cpp @@ -362,12 +362,14 @@ void Type::accept(IValVisitor* visitor, void* extra) { int diff = 0; auto elementType = baseType->SubstituteImpl(subst, &diff).As<Type>(); + auto arrlen = ArrayLength->SubstituteImpl(subst, &diff).As<IntVal>(); + SLANG_ASSERT(arrlen); if (diff) { *ioDiff = 1; auto rsType = getArrayType( elementType, - ArrayLength); + arrlen); return rsType; } return this; |
