Skip to content

Commit b70c762

Browse files
committed
AST: Workaround for rdar://139469939
This unconditional assert was added recently so it started failing in noassert toolchains. I'll have a proper fix soon.
1 parent 3e95e81 commit b70c762

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

Diff for: 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)