diff options
Diffstat (limited to 'source/slang/slang-syntax.cpp')
| -rw-r--r-- | source/slang/slang-syntax.cpp | 7 |
1 files changed, 1 insertions, 6 deletions
diff --git a/source/slang/slang-syntax.cpp b/source/slang/slang-syntax.cpp index ae44e0c70..f6b902c68 100644 --- a/source/slang/slang-syntax.cpp +++ b/source/slang/slang-syntax.cpp @@ -437,12 +437,7 @@ Index getFilterCountImpl(const ReflectClassInfo& clsInfo, MemberFilterStyle filt nodeDesc.type = (ASTNodeType)classInfo.classInfo->m_classId; nodeDesc.operands.add(ValNodeOperand(declRef)); nodeDesc.init(); - NodeBase* type = astBuilder->_getOrCreateImpl(nodeDesc, [&]() - { - auto resultNode = as<DeclRefType>(classInfo.createInstance(astBuilder)); - resultNode->setOperands(declRef); - return resultNode; - }); + NodeBase* type = astBuilder->_getOrCreateImpl(nodeDesc); if (!type) { SLANG_UNEXPECTED("constructor failure"); |
