File tree Expand file tree Collapse file tree 1 file changed +5
-5
lines changed Expand file tree Collapse file tree 1 file changed +5
-5
lines changed Original file line number Diff line number Diff line change @@ -496,7 +496,8 @@ void TBDGenVisitor::addConformances(DeclContext *DC) {
496
496
addSymbolIfNecessary (reqtAccessor, witnessAccessor);
497
497
});
498
498
} else if (isa<EnumElementDecl>(witnessDecl)) {
499
- addSymbolIfNecessary (valueReq, witnessDecl);
499
+ auto getter = storage->getSynthesizedAccessor (AccessorKind::Get);
500
+ addSymbolIfNecessary (getter, witnessDecl);
500
501
}
501
502
}
502
503
});
@@ -1016,13 +1017,12 @@ void TBDGenVisitor::visitProtocolDecl(ProtocolDecl *PD) {
1016
1017
1017
1018
void TBDGenVisitor::visitEnumDecl (EnumDecl *ED) {
1018
1019
visitNominalTypeDecl (ED);
1019
-
1020
- if (!ED->isResilient ())
1021
- return ;
1022
1020
}
1023
1021
1024
1022
void TBDGenVisitor::visitEnumElementDecl (EnumElementDecl *EED) {
1025
- addSymbol (LinkEntity::forEnumCase (EED));
1023
+ if (EED->getParentEnum ()->isResilient ())
1024
+ addSymbol (LinkEntity::forEnumCase (EED));
1025
+
1026
1026
if (auto *PL = EED->getParameterList ())
1027
1027
visitDefaultArguments (EED, PL);
1028
1028
}
You can’t perform that action at this time.
0 commit comments