summaryrefslogtreecommitdiff
path: root/source/slang/slang-check-conversion.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'source/slang/slang-check-conversion.cpp')
-rw-r--r--source/slang/slang-check-conversion.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/source/slang/slang-check-conversion.cpp b/source/slang/slang-check-conversion.cpp
index 4efacd703..2f5447ffb 100644
--- a/source/slang/slang-check-conversion.cpp
+++ b/source/slang/slang-check-conversion.cpp
@@ -349,7 +349,7 @@ namespace Slang
// We have a new type for the conversion, based on what
// we learned.
toType = m_astBuilder->getArrayType(toElementType,
- m_astBuilder->create<ConstantIntVal>(m_astBuilder->getIntType(), elementCount));
+ m_astBuilder->getOrCreate<ConstantIntVal>(m_astBuilder->getIntType(), elementCount));
}
}
else if(auto toMatrixType = as<MatrixExpressionType>(toType))