Skip to content

Commit d11db16

Browse files
authored
Merge pull request swiftlang#77786 from slavapestov/workaround-rdar139469939
AST: Workaround for rdar://139469939
2 parents 7d0c87b + b70c762 commit d11db16

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

lib/AST/SubstitutionMap.cpp

+1-3
Original file line numberDiff line numberDiff line change
@@ -233,9 +233,7 @@ Type SubstitutionMap::lookupSubstitution(GenericTypeParamType *genericParam) con
233233

234234
ProtocolConformanceRef
235235
SubstitutionMap::lookupConformance(CanType type, ProtocolDecl *proto) const {
236-
ASSERT(type->isTypeParameter());
237-
238-
if (empty())
236+
if (!type->isTypeParameter() || empty())
239237
return ProtocolConformanceRef::forInvalid();
240238

241239
auto genericSig = getGenericSignature();

0 commit comments

Comments
 (0)