File tree Expand file tree Collapse file tree 1 file changed +2
-5
lines changed Expand file tree Collapse file tree 1 file changed +2
-5
lines changed Original file line number Diff line number Diff line change @@ -1230,14 +1230,11 @@ swift::extractDistributedSerializationRequirements(
1230
1230
DA->getAssociatedType (C.Id_SerializationRequirement );
1231
1231
1232
1232
for (auto req : allRequirements) {
1233
- if (req.getSecondType ()->isAny ()) {
1234
- continue ;
1235
- }
1236
- if (!req.getFirstType ()->hasDependentMember ())
1233
+ if (req.getKind () != RequirementKind::SameType)
1237
1234
continue ;
1238
1235
1239
1236
if (auto dependentMemberType =
1240
- req.getFirstType ()->castTo <DependentMemberType>()) {
1237
+ req.getFirstType ()->getAs <DependentMemberType>()) {
1241
1238
if (dependentMemberType->getAssocType () == daSerializationReqAssocType) {
1242
1239
auto layout = req.getSecondType ()->getExistentialLayout ();
1243
1240
for (auto p : layout.getProtocols ()) {
You can’t perform that action at this time.
0 commit comments