File tree Expand file tree Collapse file tree 1 file changed +2
-3
lines changed Expand file tree Collapse file tree 1 file changed +2
-3
lines changed Original file line number Diff line number Diff line change @@ -2749,14 +2749,13 @@ static void addAbstractConditionalRequirements(
2749
2749
auto *proto =
2750
2750
req.getSecondType ()->castTo <ProtocolType>()->getDecl ();
2751
2751
auto ty = req.getFirstType ()->getCanonicalType ();
2752
- auto archetype = dyn_cast<ArchetypeType>(ty);
2752
+ auto archetype = dyn_cast<ArchetypeType>(ty);
2753
2753
if (!archetype)
2754
2754
continue ;
2755
2755
auto *genericEnv = archetype->getGenericEnvironment ();
2756
2756
auto conformance =
2757
2757
genericEnv->getForwardingSubstitutionMap ().lookupConformance (ty, proto);
2758
- if (!conformance.isAbstract ())
2759
- continue ;
2758
+ assert (conformance.isAbstract ());
2760
2759
requirements.insert ({ty, conformance.getAbstract ()});
2761
2760
}
2762
2761
// Recursively add conditional requirements.
You can’t perform that action at this time.
0 commit comments