We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
getBuiltinInitDecl
1 parent 1066c82 commit 92e5e7bCopy full SHA for 92e5e7b
lib/AST/ASTContext.cpp
@@ -1698,15 +1698,13 @@ ASTContext::getBuiltinInitDecl(NominalTypeDecl *decl,
1698
auto builtinProtocol = getProtocol(builtinProtocolKind);
1699
auto builtinConformance = lookupConformance(type, builtinProtocol);
1700
if (builtinConformance.isInvalid()) {
1701
- assert(false && "Missing required conformance");
1702
witness = ConcreteDeclRef();
1703
return witness;
1704
}
1705
1706
auto *ctx = const_cast<ASTContext *>(this);
1707
witness = builtinConformance.getWitnessByName(initName(*ctx));
1708
if (!witness) {
1709
- assert(false && "Missing required witness");
1710
1711
1712
0 commit comments