We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent f455898 commit 44b73b9Copy full SHA for 44b73b9
lib/SILGen/SILGenType.cpp
@@ -692,11 +692,11 @@ class SILGenConformance : public SILGenWitnessTable<SILGenConformance> {
692
auto assocConformance =
693
Conformance->getAssociatedConformance(req.getAssociation(),
694
req.getAssociatedRequirement());
695
- auto substType =
696
- Conformance->getAssociatedType(req.getAssociation())->getCanonicalType();
697
-
698
SGM.useConformance(assocConformance);
699
+ auto substType = (assocConformance
+ ? assocConformance.getType()
+ : ErrorType::get(SGM.getASTContext()))->getCanonicalType();
700
Entries.push_back(SILWitnessTable::AssociatedConformanceWitness{
701
req.getAssociation(), substType, assocConformance});
702
}
0 commit comments