Skip to content

Commit 04135a3

Browse files
committed
[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.
1 parent 4164b2e commit 04135a3

File tree

1 file changed

+0
-3
lines changed

1 file changed

+0
-3
lines changed

lib/Serialization/Serialization.cpp

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1490,9 +1490,6 @@ void Serializer::writeASTBlockEntity(
14901490
++numValueWitnesses;
14911491
data.push_back(addDeclRef(req));
14921492
data.push_back(addDeclRef(witness.getDecl()));
1493-
assert(witness.getDecl() || req->getAttrs().hasAttribute<OptionalAttr>()
1494-
|| req->getAttrs().isUnavailable(req->getASTContext())
1495-
|| allowCompilerErrors());
14961493

14971494
// If there is no witness, we're done.
14981495
if (!witness.getDecl()) return;

0 commit comments

Comments
 (0)