summaryrefslogtreecommitdiffstats
path: root/source/slang/slang-emit-cpp.cpp
diff options
context:
space:
mode:
authorYong He <yonghe@outlook.com>2023-09-27 11:36:31 -0700
committerGitHub <noreply@github.com>2023-09-27 11:36:31 -0700
commit771b3ef47d48f5277ac9f23ee8a49548a430d107 (patch)
treecaee840980980d694c0429c40f77c37dd7099bde /source/slang/slang-emit-cpp.cpp
parentebe8ddefc48478307d5f206cd3e40c41d28a36e3 (diff)
Avoid make copies of __ref parameters when doing autodiff. (#3242)
Co-authored-by: Yong He <yhe@nvidia.com>
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;