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(
12231223 DA->getAssociatedType (C.Id_SerializationRequirement );
12241224
12251225 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)
12301229 continue ;
12311230
12321231 if (auto dependentMemberType =
1233- req.getFirstType ()->castTo <DependentMemberType>()) {
1232+ req.getFirstType ()->getAs <DependentMemberType>()) {
12341233 if (dependentMemberType->getAssocType () == daSerializationReqAssocType) {
12351234 auto layout = req.getSecondType ()->getExistentialLayout ();
12361235 for (auto p : layout.getProtocols ()) {
You can’t perform that action at this time.
0 commit comments