File tree Expand file tree Collapse file tree 1 file changed +1
-20
lines changed Expand file tree Collapse file tree 1 file changed +1
-20
lines changed Original file line number Diff line number Diff line change @@ -3735,26 +3735,7 @@ bool GenericSignatureBuilder::updateSuperclass(
3735
3735
// when the superclass constraint changes.
3736
3736
auto updateSuperclassConformances = [&] {
3737
3737
for (const auto &conforms : equivClass->conformsTo ) {
3738
- auto proto = conforms.first ;
3739
- if (auto superSource = resolveSuperConformance (type, proto)) {
3740
- for (auto assocType : proto->getAssociatedTypeMembers ()) {
3741
- // Only do this for the anchor.
3742
- if (assocType != assocType->getAssociatedTypeAnchor ())
3743
- continue ;
3744
-
3745
- // FIXME: More efficient way to extend resolved type?
3746
- Type nestedType =
3747
- DependentMemberType::get (type.getDependentType (*this ), assocType);
3748
- if (auto nested =
3749
- maybeResolveEquivalenceClass (
3750
- nestedType,
3751
- ArchetypeResolutionKind::AlreadyKnown,
3752
- /* wantExactPotentialArchetype=*/ true )) {
3753
- maybeAddSameTypeRequirementForNestedType (nested, superSource,
3754
- *this );
3755
- }
3756
- }
3757
- }
3738
+ (void )resolveSuperConformance (type, conforms.first );
3758
3739
}
3759
3740
};
3760
3741
You can’t perform that action at this time.
0 commit comments