From 771b3ef47d48f5277ac9f23ee8a49548a430d107 Mon Sep 17 00:00:00 2001 From: Yong He Date: Wed, 27 Sep 2023 11:36:31 -0700 Subject: Avoid make copies of __ref parameters when doing autodiff. (#3242) Co-authored-by: Yong He --- source/slang/slang-emit-cpp.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'source/slang/slang-emit-cpp.cpp') 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(type); - RefDeclaratorInfo refDeclarator(declarator); + PtrDeclaratorInfo refDeclarator(declarator); _emitType(ptrType->getValueType(), &refDeclarator); } break; -- cgit v1.2.3