@@ -124,7 +124,7 @@ class GenericSignatureBuilder {
124
124
conformsTo;
125
125
126
126
// / Same-type constraints within this equivalence class.
127
- std::vector<Constraint<PotentialArchetype * >> sameTypeConstraints;
127
+ std::vector<Constraint<Type >> sameTypeConstraints;
128
128
129
129
// / Concrete type to which this equivalence class is equal.
130
130
// /
@@ -213,15 +213,6 @@ class GenericSignatureBuilder {
213
213
ProtocolDecl *proto,
214
214
FloatingRequirementSource source);
215
215
216
- // / Record a same-type constraint between \c type1 and \c type2 determined
217
- // / via the given source.
218
- // /
219
- // / \returns true if this same-type constraint merges two equivalence
220
- // / classes, and false otherwise.
221
- bool recordSameTypeConstraint (PotentialArchetype *type1,
222
- PotentialArchetype *type2,
223
- const RequirementSource *source);
224
-
225
216
// / Find a source of the same-type constraint that maps a potential
226
217
// / archetype in this equivalence class to a concrete type along with
227
218
// / that concrete type as written.
@@ -1505,8 +1496,10 @@ struct GenericSignatureBuilder::Constraint {
1505
1496
Type getSubjectDependentType (
1506
1497
TypeArrayView<GenericTypeParamType> genericParams) const ;
1507
1498
1508
- // / Determine whether the subject is equivalence to the given potential
1509
- // / archetype.
1499
+ // / Determine whether the subject is equivalence to the given type.
1500
+ bool isSubjectEqualTo (Type type) const ;
1501
+
1502
+ // / Determine whether the subject is equivalence to the given type.
1510
1503
bool isSubjectEqualTo (const PotentialArchetype *pa) const ;
1511
1504
1512
1505
// / Determine whether this constraint has the same subject as the
0 commit comments