summaryrefslogtreecommitdiffstats
path: root/source/slang/slang-emit-cpp.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'source/slang/slang-emit-cpp.cpp')
-rw-r--r--source/slang/slang-emit-cpp.cpp2
1 files changed, 1 insertions, 1 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;