mirror of
https://github.com/apple/swift.git
synced 2025-12-21 12:14:44 +01:00
AST: Rename mapTypeIntoContext() => mapTypeIntoEnvironment(), mapTypeOutOfContext() => mapTypeOutOfEnvironment()
This commit is contained in:
@@ -141,7 +141,7 @@ void ExistentialSpecializerCloner::cloneArguments(
|
||||
// Clone arguments that are not rewritten.
|
||||
auto Ty = params[ArgDesc.Index].getArgumentType(
|
||||
M, NewFTy, NewF.getTypeExpansionContext());
|
||||
auto LoweredTy = NewF.getLoweredType(NewF.mapTypeIntoContext(Ty));
|
||||
auto LoweredTy = NewF.getLoweredType(NewF.mapTypeIntoEnvironment(Ty));
|
||||
auto MappedTy =
|
||||
LoweredTy.getCategoryType(ArgDesc.Arg->getType().getCategory());
|
||||
auto *NewArg =
|
||||
@@ -153,7 +153,7 @@ void ExistentialSpecializerCloner::cloneArguments(
|
||||
// Create the generic argument.
|
||||
GenericTypeParamType *GenericParam = iter->second;
|
||||
SILType GenericSILType =
|
||||
NewF.getLoweredType(NewF.mapTypeIntoContext(GenericParam));
|
||||
NewF.getLoweredType(NewF.mapTypeIntoEnvironment(GenericParam));
|
||||
GenericSILType = GenericSILType.getCategoryType(
|
||||
ArgDesc.Arg->getType().getCategory());
|
||||
auto *NewArg = ClonedEntryBB->createFunctionArgument(
|
||||
@@ -637,7 +637,7 @@ void ExistentialTransform::createExistentialSpecializedFunction() {
|
||||
SubstitutionMap Subs = SubstitutionMap::get(
|
||||
NewFGenericSig,
|
||||
[&](SubstitutableType *type) -> Type {
|
||||
return NewFGenericEnv->mapTypeIntoContext(type);
|
||||
return NewFGenericEnv->mapTypeIntoEnvironment(type);
|
||||
},
|
||||
LookUpConformanceInModule());
|
||||
ExistentialSpecializerCloner cloner(F, NewF, Subs, ArgumentDescList,
|
||||
|
||||
Reference in New Issue
Block a user