[AST] Keep track of the type decl that the type witness came from, for protocol conformances.

Swift SVN r27352
This commit is contained in:
Argyrios Kyrtzidis
2015-04-16 06:23:54 +00:00
parent 237635ad42
commit 5f6d091efc
7 changed files with 74 additions and 37 deletions

View File

@@ -1244,7 +1244,8 @@ public:
continue;
Conformance->forEachTypeWitness(TypeResolver.get(),
[&](const AssociatedTypeDecl *ATD,
const Substitution &Subst) -> bool {
const Substitution &Subst,
TypeDecl *TD) -> bool {
Types[ATD] = Subst.getReplacement();
return false;
});