@@ -661,7 +661,7 @@ Type GenericSignatureImpl::getUpperBound(Type type,
661661 InvertibleProtocolSet inverses;
662662
663663 if (!superclass && !hasExplicitAnyObject) {
664- for (auto ip : InvertibleProtocolSet::full ()) {
664+ for (auto ip : InvertibleProtocolSet::allKnown ()) {
665665 auto *kp = ctx.getProtocol (::getKnownProtocolKind (ip));
666666 if (!requiresProtocol (type, kp))
667667 inverses.insert (ip);
@@ -1257,7 +1257,7 @@ void GenericSignatureImpl::getRequirementsWithInverses(
12571257 if (getSuperclassBound (gp) || getConcreteType (gp))
12581258 continue ;
12591259
1260- for (auto ip : InvertibleProtocolSet::full ()) {
1260+ for (auto ip : InvertibleProtocolSet::allKnown ()) {
12611261 auto *proto = ctx.getProtocol (getKnownProtocolKind (ip));
12621262
12631263 // If we can derive a conformance to this protocol, then don't add an
@@ -1297,7 +1297,7 @@ RequirementSignature RequirementSignature::getPlaceholderRequirementSignature(
12971297 inheritedProtos.push_back (inheritedProto);
12981298 }
12991299
1300- for (auto ip : InvertibleProtocolSet::full ()) {
1300+ for (auto ip : InvertibleProtocolSet::allKnown ()) {
13011301 auto *otherProto = ctx.getProtocol (getKnownProtocolKind (ip));
13021302 inheritedProtos.push_back (otherProto);
13031303 }
@@ -1313,7 +1313,7 @@ RequirementSignature RequirementSignature::getPlaceholderRequirementSignature(
13131313 }
13141314
13151315 for (auto *assocTypeDecl : proto->getAssociatedTypeMembers ()) {
1316- for (auto ip : InvertibleProtocolSet::full ()) {
1316+ for (auto ip : InvertibleProtocolSet::allKnown ()) {
13171317 auto *otherProto = ctx.getProtocol (getKnownProtocolKind (ip));
13181318 requirements.emplace_back (RequirementKind::Conformance,
13191319 assocTypeDecl->getDeclaredInterfaceType (),
@@ -1349,7 +1349,7 @@ void RequirementSignature::getRequirementsWithInverses(
13491349 sig->getConcreteType (interfaceType))
13501350 return ;
13511351
1352- for (auto ip : InvertibleProtocolSet::full ()) {
1352+ for (auto ip : InvertibleProtocolSet::allKnown ()) {
13531353 auto *proto = ctx.getProtocol (getKnownProtocolKind (ip));
13541354
13551355 // If we can derive a conformance to this protocol, then don't add an
0 commit comments