@@ -299,7 +299,6 @@ static ProtocolConformance *getSuperConformance(
299
299
// / If there is a same-type requirement to be added for the given nested type
300
300
// / due to a superclass constraint on the parent type, add it now.
301
301
static void maybeAddSameTypeRequirementForNestedType (
302
- ArchetypeBuilder::PotentialArchetype *parentPA,
303
302
ArchetypeBuilder::PotentialArchetype *nestedPA,
304
303
RequirementSource fromSource,
305
304
ProtocolConformance *superConformance,
@@ -369,7 +368,7 @@ bool ArchetypeBuilder::PotentialArchetype::addConformance(
369
368
370
369
// If there's a superclass constraint that conforms to the protocol,
371
370
// add the appropriate same-type relationship.
372
- maybeAddSameTypeRequirementForNestedType (this , known->second .front (),
371
+ maybeAddSameTypeRequirementForNestedType (known->second .front (),
373
372
source, superConformance,
374
373
builder);
375
374
continue ;
@@ -387,7 +386,7 @@ bool ArchetypeBuilder::PotentialArchetype::addConformance(
387
386
388
387
// If there's a superclass constraint that conforms to the protocol,
389
388
// add the appropriate same-type relationship.
390
- maybeAddSameTypeRequirementForNestedType (this , otherPA, source,
389
+ maybeAddSameTypeRequirementForNestedType (otherPA, source,
391
390
superConformance, builder);
392
391
}
393
392
@@ -491,7 +490,7 @@ auto ArchetypeBuilder::PotentialArchetype::getNestedType(
491
490
// add the appropriate same-type relationship.
492
491
ProtocolConformance *superConformance =
493
492
getSuperConformance (this , conforms.first , conforms.second , builder);
494
- maybeAddSameTypeRequirementForNestedType (this , pa, source,
493
+ maybeAddSameTypeRequirementForNestedType (pa, source,
495
494
superConformance, builder);
496
495
}
497
496
}
@@ -969,7 +968,7 @@ bool ArchetypeBuilder::addSuperclassRequirement(PotentialArchetype *T,
969
968
970
969
for (auto nestedPA : nested->second ) {
971
970
if (nestedPA->getResolvedAssociatedType () == assocType)
972
- maybeAddSameTypeRequirementForNestedType (T, nestedPA,
971
+ maybeAddSameTypeRequirementForNestedType (nestedPA,
973
972
Source,
974
973
superConformance, *this );
975
974
}
0 commit comments