Record the value-witness-of relationship in the ASTContext as we assign witnesses.

Previously, this was being handled when we set conformances. We want
something lazier.


Swift SVN r11339
This commit is contained in:
Doug Gregor
2013-12-16 02:49:37 +00:00
parent 93c15bed50
commit 292192efac
3 changed files with 3 additions and 32 deletions

View File

@@ -410,6 +410,7 @@ Optional<ConformancePair> ModuleFile::maybeReadConformance(Type conformingType,
witness = ConcreteDeclRef(ctx, second, substitutions);
witnesses.insert(std::make_pair(first, witness));
ctx.recordConformingDecl(second, first);
}
assert(rawIDIter <= rawIDs.end() && "read too much");