mirror of
https://github.com/apple/swift.git
synced 2025-12-14 20:36:38 +01:00
Add a LazyResolver to ProtocolConformance::getWitness().
Swift SVN r11331
This commit is contained in:
@@ -627,7 +627,8 @@ Serializer::writeConformance(const ProtocolDecl *protocol,
|
||||
unsigned numValueWitnesses = 0;
|
||||
unsigned numTypeWitnesses = 0;
|
||||
unsigned numDefaultedDefinitions = 0;
|
||||
conformance->forEachValueWitness([&](ValueDecl *req,
|
||||
conformance->forEachValueWitness(nullptr,
|
||||
[&](ValueDecl *req,
|
||||
ConcreteDeclRef witness) {
|
||||
data.push_back(addDeclRef(req));
|
||||
data.push_back(addDeclRef(witness.getDecl()));
|
||||
@@ -670,7 +671,8 @@ Serializer::writeConformance(const ProtocolDecl *protocol,
|
||||
}
|
||||
writeConformances(inheritedProtos, inheritedConformance, associatedDecl,
|
||||
abbrCodes);
|
||||
conformance->forEachValueWitness([&](ValueDecl *req,
|
||||
conformance->forEachValueWitness(nullptr,
|
||||
[&](ValueDecl *req,
|
||||
ConcreteDeclRef witness) {
|
||||
writeSubstitutions(witness.getSubstitutions(), abbrCodes);
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user