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 @@ -498,7 +498,8 @@ void TBDGenVisitor::addConformances(const IterableDeclContext *IDC) {
498
498
addSymbolIfNecessary (reqtAccessor, witnessAccessor);
499
499
});
500
500
} else if (isa<EnumElementDecl>(witnessDecl)) {
501
- addSymbolIfNecessary (valueReq, witnessDecl);
501
+ auto getter = storage->getSynthesizedAccessor (AccessorKind::Get);
502
+ addSymbolIfNecessary (getter, witnessDecl);
502
503
}
503
504
}
504
505
});
@@ -1018,13 +1019,12 @@ void TBDGenVisitor::visitProtocolDecl(ProtocolDecl *PD) {
1018
1019
1019
1020
void TBDGenVisitor::visitEnumDecl (EnumDecl *ED) {
1020
1021
visitNominalTypeDecl (ED);
1021
-
1022
- if (!ED->isResilient ())
1023
- return ;
1024
1022
}
1025
1023
1026
1024
void TBDGenVisitor::visitEnumElementDecl (EnumElementDecl *EED) {
1027
- addSymbol (LinkEntity::forEnumCase (EED));
1025
+ if (EED->getParentEnum ()->isResilient ())
1026
+ addSymbol (LinkEntity::forEnumCase (EED));
1027
+
1028
1028
if (auto *PL = EED->getParameterList ())
1029
1029
visitDefaultArguments (EED, PL);
1030
1030
}
You can’t perform that action at this time.
0 commit comments