Skip to content

Commit 8b4b15b

Browse files
committed
Sema: Remove unnecessary logic for @objc accessors
1 parent 560debf commit 8b4b15b

File tree

1 file changed

+2
-14
lines changed

1 file changed

+2
-14
lines changed

lib/Sema/TypeCheckDecl.cpp

Lines changed: 2 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -4454,20 +4454,8 @@ void TypeChecker::requestMemberLayout(ValueDecl *member) {
44544454
requestNominalLayout(protocolDecl);
44554455

44564456
// If this represents (abstract) storage, form the appropriate accessors.
4457-
if (auto storage = dyn_cast<AbstractStorageDecl>(member)) {
4458-
validateAbstractStorageDecl(*this, storage);
4459-
4460-
// Request layout of the accessors for an @objc declaration.
4461-
// We can't delay validation of getters and setters on @objc properties,
4462-
// because if they never get validated at all then conformance checkers
4463-
// will complain about selector mismatches.
4464-
if (storage->isObjC()) {
4465-
maybeAddAccessorsToStorage(storage);
4466-
for (auto accessor : storage->getAllAccessors()) {
4467-
requestMemberLayout(accessor);
4468-
}
4469-
}
4470-
}
4457+
if (auto storage = dyn_cast<AbstractStorageDecl>(member))
4458+
DeclsToFinalize.insert(storage);
44714459
}
44724460

44734461
void TypeChecker::requestNominalLayout(NominalTypeDecl *nominalDecl) {

0 commit comments

Comments
 (0)