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

@@ -186,7 +186,7 @@ static FuncDecl *findNamedWitness(TypeChecker &tc, DeclContext *dc,
assert(conformance && "Missing conformance information");
// FIXME: Dropping substitutions here.
return cast<FuncDecl>(conformance->getWitness(requirement).getDecl());
return cast<FuncDecl>(conformance->getWitness(requirement, &tc).getDecl());
}
/// Adjust the given type to become the self type when referring to