AST: Remove DeclContext::mapTypeOutOfContext()

This commit is contained in:
Slava Pestov
2017-11-15 20:54:21 -08:00
parent cce30cc9bb
commit 2920b4fd1c
19 changed files with 27 additions and 38 deletions

View File

@@ -717,7 +717,7 @@ Type TypeChecker::getUnopenedTypeOfReference(VarDecl *value, Type baseType,
if (!wantInterfaceType && requestedType->hasArchetype()) {
auto valueDC = value->getDeclContext();
if (valueDC != UseDC) {
Type mapped = valueDC->mapTypeOutOfContext(requestedType);
Type mapped = requestedType->mapTypeOutOfContext();
requestedType = UseDC->mapTypeIntoContext(mapped);
}
}