summaryrefslogtreecommitdiffstats
path: root/source/slang/slang-syntax.cpp
diff options
context:
space:
mode:
authorYong He <yonghe@outlook.com>2023-08-07 15:00:38 -0700
committerGitHub <noreply@github.com>2023-08-07 15:00:38 -0700
commit9eb6a84285c1597d723be13924a7ad2991cf717f (patch)
treead4358fb9dcbbd4b561670d02671859a217ad14a /source/slang/slang-syntax.cpp
parent9ef9cc00d98d1775f0ad86efd246ca1605b3b3e4 (diff)
Fix `Val` deduplication bug. (#3050)
* Fix `Val` deduplication bug. * Fix * Concat stdlib files into a single module. * Remove unnecessary logic in `resolve`. --------- Co-authored-by: Yong He <yhe@nvidia.com>
Diffstat (limited to 'source/slang/slang-syntax.cpp')
-rw-r--r--source/slang/slang-syntax.cpp7
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");