summaryrefslogtreecommitdiff
path: root/source/slang/slang-check-shader.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'source/slang/slang-check-shader.cpp')
-rw-r--r--source/slang/slang-check-shader.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/source/slang/slang-check-shader.cpp b/source/slang/slang-check-shader.cpp
index 3a64f3c8f..46e39e4c0 100644
--- a/source/slang/slang-check-shader.cpp
+++ b/source/slang/slang-check-shader.cpp
@@ -62,7 +62,7 @@ namespace Slang
//
while( auto arrayType = as<ArrayExpressionType>(type) )
{
- type = arrayType->baseType;
+ type = arrayType->getElementType();
}
if( auto parameterGroupType = as<ParameterGroupType>(type) )
@@ -1125,7 +1125,7 @@ namespace Slang
if(!intVal)
{
sink->diagnose(param.loc, Diagnostics::expectedValueOfTypeForSpecializationArg, paramDecl->getType(), paramDecl);
- intVal = getLinkage()->getASTBuilder()->getOrCreate<ConstantIntVal>(m_astBuilder->getIntType(), 0);
+ intVal = getLinkage()->getASTBuilder()->getIntVal(m_astBuilder->getIntType(), 0);
}
ModuleSpecializationInfo::GenericArgInfo expandedArg;