summaryrefslogtreecommitdiffstats
path: root/source
diff options
context:
space:
mode:
Diffstat (limited to 'source')
-rw-r--r--source/slang/slang-emit-cpp.cpp2
-rw-r--r--source/slang/slang-ir-autodiff-fwd.cpp2
2 files changed, 2 insertions, 2 deletions
diff --git a/source/slang/slang-emit-cpp.cpp b/source/slang/slang-emit-cpp.cpp
index ec797bcf4..81bc2203a 100644
--- a/source/slang/slang-emit-cpp.cpp
+++ b/source/slang/slang-emit-cpp.cpp
@@ -1041,7 +1041,7 @@ void CPPSourceEmitter::_emitType(IRType* type, DeclaratorInfo* declarator)
case kIROp_RefType:
{
auto ptrType = cast<IRPtrTypeBase>(type);
- RefDeclaratorInfo refDeclarator(declarator);
+ PtrDeclaratorInfo refDeclarator(declarator);
_emitType(ptrType->getValueType(), &refDeclarator);
}
break;
diff --git a/source/slang/slang-ir-autodiff-fwd.cpp b/source/slang/slang-ir-autodiff-fwd.cpp
index 560f3f64e..2465c1b74 100644
--- a/source/slang/slang-ir-autodiff-fwd.cpp
+++ b/source/slang/slang-ir-autodiff-fwd.cpp
@@ -1605,7 +1605,7 @@ void insertTempVarForMutableParams(IRModule* module, IRFunc* func)
List<IRParam*> params;
for (auto param : firstBlock->getParams())
{
- if (const auto ptrType = as<IRPtrTypeBase>(param->getDataType()))
+ if (const auto ptrType = as<IROutTypeBase>(param->getDataType()))
{
params.add(param);
}