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(
12241224 DA->getAssociatedType (C.Id_SerializationRequirement );
12251225
12261226 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)
12311230 continue ;
12321231
12331232 if (auto dependentMemberType =
1234- req.getFirstType ()->castTo <DependentMemberType>()) {
1233+ req.getFirstType ()->getAs <DependentMemberType>()) {
12351234 if (dependentMemberType->getAssocType () == daSerializationReqAssocType) {
12361235 // auto requirementProto = req.getSecondType();
12371236 // if (auto proto = dyn_cast_or_null<ProtocolDecl>(
@@ -1248,7 +1247,7 @@ swift::extractDistributedSerializationRequirements(
12481247 // }
12491248 auto layout = req.getSecondType ()->getExistentialLayout ();
12501249 for (auto p : layout.getProtocols ()) {
1251- serializationReqs .insert (p);
1250+ into .insert (p);
12521251 }
12531252 }
12541253 }
You can’t perform that action at this time.
0 commit comments