From a5efbb1b775afb2f6b29b37d39947c41744bb005 Mon Sep 17 00:00:00 2001 From: Ronan Date: Sat, 26 Apr 2025 21:04:01 +0200 Subject: Added getCanonicalGenericConstraints2 (sorts constraints and allows more generic expressions) (#6787) --- source/slang/slang-check-modifier.cpp | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) (limited to 'source/slang/slang-check-modifier.cpp') diff --git a/source/slang/slang-check-modifier.cpp b/source/slang/slang-check-modifier.cpp index e0b203fb6..cebcbe540 100644 --- a/source/slang/slang-check-modifier.cpp +++ b/source/slang/slang-check-modifier.cpp @@ -285,8 +285,7 @@ AttributeDecl* SemanticsVisitor::lookUpAttributeDecl(Name* attributeName, Scope* paramDecl->loc = member->loc; paramDecl->setCheckState(DeclCheckState::DefinitionChecked); - paramDecl->parentDecl = attrDecl; - attrDecl->members.add(paramDecl); + attrDecl->addMember(paramDecl); } } @@ -297,8 +296,7 @@ AttributeDecl* SemanticsVisitor::lookUpAttributeDecl(Name* attributeName, Scope* // // TODO: handle the case where `parentDecl` is generic? // - attrDecl->parentDecl = parentDecl; - parentDecl->members.add(attrDecl); + parentDecl->addMember(attrDecl); SLANG_ASSERT(!parentDecl->isMemberDictionaryValid()); -- cgit v1.2.3