AST: GenericEnvironment::mapTypeIntoContext() no longer needs to take a ModuleDecl

Now, use LookUpConformanceInSignature instead.
This commit is contained in:
Slava Pestov
2017-02-07 15:48:01 -08:00
parent 2aea662cb7
commit bd4f31025f
18 changed files with 31 additions and 45 deletions

View File

@@ -117,7 +117,7 @@ Type Pattern::getType() const {
if (auto genericEnv = dc->getGenericEnvironmentOfContext()) {
ctx.DelayedPatternContexts.erase(this);
Ty = genericEnv->mapTypeIntoContext(dc->getParentModule(), Ty);
Ty = genericEnv->mapTypeIntoContext(Ty);
PatternBits.hasInterfaceType = false;
}
}