mirror of
https://github.com/apple/swift.git
synced 2025-12-14 20:36:38 +01:00
[Serialization] Remove an assertion that fires spuriously.
This assertion does not account for the fact that a particular requirement can be imported both as async and with a completion handler, and therefore one of those two views won't have a witness. The assertion is no longer catching anything useful, so remove it. Addresses rdar://77684000.
This commit is contained in:
@@ -1490,9 +1490,6 @@ void Serializer::writeASTBlockEntity(
|
||||
++numValueWitnesses;
|
||||
data.push_back(addDeclRef(req));
|
||||
data.push_back(addDeclRef(witness.getDecl()));
|
||||
assert(witness.getDecl() || req->getAttrs().hasAttribute<OptionalAttr>()
|
||||
|| req->getAttrs().isUnavailable(req->getASTContext())
|
||||
|| allowCompilerErrors());
|
||||
|
||||
// If there is no witness, we're done.
|
||||
if (!witness.getDecl()) return;
|
||||
|
||||
Reference in New Issue
Block a user