Skip to content

Commit ec10d1a

Browse files
committed
NFC: describe assertion issue
1 parent a729252 commit ec10d1a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/Sema/TypeCheckInvertible.cpp

+1-1
Original file line numberDiff line numberDiff line change
@@ -162,7 +162,7 @@ static bool conformsToInvertible(CanType type, InvertibleProtocolKind ip) {
162162
auto &ctx = type->getASTContext();
163163

164164
auto *invertible = ctx.getProtocol(getKnownProtocolKind(ip));
165-
assert(invertible);
165+
assert(invertible && "failed to load Copyable/Escapable from stdlib!");
166166

167167
// Must not have a type parameter!
168168
assert(!type->hasTypeParameter() && "caller forgot to mapTypeIntoContext!");

0 commit comments

Comments
 (0)