mirror of
https://github.com/apple/swift.git
synced 2025-12-14 20:36:38 +01:00
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:
@@ -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");
|
||||
|
||||
|
||||
Reference in New Issue
Block a user