Add a LazyResolver to ProtocolConformance::getWitness().

Swift SVN r11331
This commit is contained in:
Doug Gregor
2013-12-15 19:40:49 +00:00
parent 1667ed6ec6
commit 2d75ca2adf
11 changed files with 37 additions and 23 deletions

View File

@@ -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);
});