Skip to content

Commit 0f4c14b

Browse files
committed
[GSB] checkRedundantSuperclassConstraints() -> checkSuperclassConstraints()
1 parent 094b0f8 commit 0f4c14b

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

include/swift/AST/GenericSignatureBuilder.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -462,9 +462,9 @@ class GenericSignatureBuilder {
462462
ArrayRef<GenericTypeParamType *> genericParams,
463463
PotentialArchetype *pa);
464464

465-
/// Check for redundant superclass constraints within the equivalence
465+
/// Check the superclass constraints within the equivalence
466466
/// class of the given potential archetype.
467-
void checkRedundantSuperclassConstraints(
467+
void checkSuperclassConstraints(
468468
ArrayRef<GenericTypeParamType *> genericParams,
469469
PotentialArchetype *pa);
470470

lib/AST/GenericSignatureBuilder.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3047,7 +3047,7 @@ GenericSignatureBuilder::finalize(SourceLoc loc,
30473047

30483048
archetype->RecursiveSuperclassType = true;
30493049
} else {
3050-
checkRedundantSuperclassConstraints(genericParams, archetype);
3050+
checkSuperclassConstraints(genericParams, archetype);
30513051
}
30523052
}
30533053

@@ -3375,7 +3375,7 @@ void GenericSignatureBuilder::checkConcreteTypeConstraints(
33753375
diag::same_type_redundancy_here);
33763376
}
33773377

3378-
void GenericSignatureBuilder::checkRedundantSuperclassConstraints(
3378+
void GenericSignatureBuilder::checkSuperclassConstraints(
33793379
ArrayRef<GenericTypeParamType *> genericParams,
33803380
PotentialArchetype *representative) {
33813381
auto equivClass = representative->getOrCreateEquivalenceClass();

0 commit comments

Comments
 (0)