mirror of
https://github.com/apple/swift.git
synced 2025-12-21 12:14:44 +01:00
Merge remote-tracking branch 'origin/main' into rebranch
This commit is contained in:
@@ -1444,6 +1444,8 @@ void Serializer::writeASTBlockEntity(
|
||||
const NormalProtocolConformance *conformance) {
|
||||
using namespace decls_block;
|
||||
|
||||
PrettyStackTraceConformance trace("serializing", conformance);
|
||||
|
||||
// The conformance must be complete, or we can't serialize it.
|
||||
assert(conformance->isComplete() || allowCompilerErrors());
|
||||
assert(NormalConformancesToSerialize.hasRef(conformance));
|
||||
@@ -1464,6 +1466,9 @@ void Serializer::writeASTBlockEntity(
|
||||
});
|
||||
|
||||
conformance->forEachValueWitness([&](ValueDecl *req, Witness witness) {
|
||||
PrettyStackTraceDecl traceValueWitness(
|
||||
"serializing value witness for requirement", req);
|
||||
|
||||
++numValueWitnesses;
|
||||
data.push_back(addDeclRef(req));
|
||||
data.push_back(addDeclRef(witness.getDecl()));
|
||||
|
||||
Reference in New Issue
Block a user