File tree Expand file tree Collapse file tree 1 file changed +4
-5
lines changed Expand file tree Collapse file tree 1 file changed +4
-5
lines changed Original file line number Diff line number Diff line change @@ -1223,14 +1223,13 @@ swift::extractDistributedSerializationRequirements(
1223
1223
DA->getAssociatedType (C.Id_SerializationRequirement );
1224
1224
1225
1225
for (auto req : allRequirements) {
1226
- if (req.getSecondType ()->isAny ()) {
1227
- continue ;
1228
- }
1229
- if (!req.getFirstType ()->hasDependentMember ())
1226
+ // FIXME: Seems unprincipled
1227
+ if (req.getKind () != RequirementKind::SameType &&
1228
+ req.getKind () != RequirementKind::Conformance)
1230
1229
continue ;
1231
1230
1232
1231
if (auto dependentMemberType =
1233
- req.getFirstType ()->castTo <DependentMemberType>()) {
1232
+ req.getFirstType ()->getAs <DependentMemberType>()) {
1234
1233
if (dependentMemberType->getAssocType () == daSerializationReqAssocType) {
1235
1234
auto layout = req.getSecondType ()->getExistentialLayout ();
1236
1235
for (auto p : layout.getProtocols ()) {
You can’t perform that action at this time.
0 commit comments