Skip to content

Commit 706f84a

Browse files
committed
AST: Relax an assertion
1 parent bc7f11c commit 706f84a

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

lib/AST/Type.cpp

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2920,7 +2920,8 @@ Optional<ProtocolConformanceRef>
29202920
MakeAbstractConformanceForGenericType::operator()(CanType dependentType,
29212921
Type conformingReplacementType,
29222922
ProtocolType *conformedProtocol) const {
2923-
assert((conformingReplacementType->is<SubstitutableType>()
2923+
assert((conformingReplacementType->is<ErrorType>()
2924+
|| conformingReplacementType->is<SubstitutableType>()
29242925
|| conformingReplacementType->is<DependentMemberType>())
29252926
&& "replacement requires looking up a concrete conformance");
29262927
return ProtocolConformanceRef(conformedProtocol->getDecl());

0 commit comments

Comments
 (0)