We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents 7d0c87b + b70c762 commit d11db16Copy full SHA for d11db16
lib/AST/SubstitutionMap.cpp
@@ -233,9 +233,7 @@ Type SubstitutionMap::lookupSubstitution(GenericTypeParamType *genericParam) con
233
234
ProtocolConformanceRef
235
SubstitutionMap::lookupConformance(CanType type, ProtocolDecl *proto) const {
236
- ASSERT(type->isTypeParameter());
237
-
238
- if (empty())
+ if (!type->isTypeParameter() || empty())
239
return ProtocolConformanceRef::forInvalid();
240
241
auto genericSig = getGenericSignature();
0 commit comments