Skip to content

Commit 560debf

Browse files
committed
Sema: Remove unnecessary finalization of class extension members
1 parent 7786ac8 commit 560debf

File tree

1 file changed

+0
-8
lines changed

1 file changed

+0
-8
lines changed

lib/Sema/TypeCheckDecl.cpp

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -4453,14 +4453,6 @@ void TypeChecker::requestMemberLayout(ValueDecl *member) {
44534453
if (auto *protocolDecl = dyn_cast<ProtocolDecl>(dc))
44544454
requestNominalLayout(protocolDecl);
44554455

4456-
if (auto ext = dyn_cast<ExtensionDecl>(dc)) {
4457-
if (ext->getSelfClassDecl()) {
4458-
// Finalize members of class extensions, to ensure we compute their
4459-
// @objc and dynamic state.
4460-
DeclsToFinalize.insert(member);
4461-
}
4462-
}
4463-
44644456
// If this represents (abstract) storage, form the appropriate accessors.
44654457
if (auto storage = dyn_cast<AbstractStorageDecl>(member)) {
44664458
validateAbstractStorageDecl(*this, storage);

0 commit comments

Comments
 (0)