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