File tree Expand file tree Collapse file tree 1 file changed +2
-14
lines changed Expand file tree Collapse file tree 1 file changed +2
-14
lines changed Original file line number Diff line number Diff line change @@ -4454,20 +4454,8 @@ void TypeChecker::requestMemberLayout(ValueDecl *member) {
4454
4454
requestNominalLayout (protocolDecl);
4455
4455
4456
4456
// 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);
4471
4459
}
4472
4460
4473
4461
void TypeChecker::requestNominalLayout (NominalTypeDecl *nominalDecl) {
You can’t perform that action at this time.
0 commit comments