diff options
Diffstat (limited to 'source/slang/slang-check-modifier.cpp')
| -rw-r--r-- | source/slang/slang-check-modifier.cpp | 6 |
1 files changed, 2 insertions, 4 deletions
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()); |
