mirror of
https://github.com/apple/swift.git
synced 2025-12-21 12:14:44 +01:00
SIL: Change SILType::subst to be SubstitutionMap-based.
This simplifies the SILType substitution APIs and brings them in line with Doug and Slava's refactorings to improve AST-level type substitution. NFC intended.
This commit is contained in:
@@ -776,9 +776,7 @@ specializePartialApply(PartialApplyInst *PartialApply,
|
||||
ClonedFn);
|
||||
CanSILFunctionType CanFnTy = ClonedFn->getLoweredFunctionType();
|
||||
auto const &Subs = PartialApply->getSubstitutions();
|
||||
CanSILFunctionType SubstCalleeTy = CanFnTy->substGenericArgs(M,
|
||||
M.getSwiftModule(),
|
||||
Subs);
|
||||
CanSILFunctionType SubstCalleeTy = CanFnTy->substGenericArgs(M, Subs);
|
||||
return Builder.createPartialApply(PartialApply->getLoc(), FunctionRef,
|
||||
SILType::getPrimitiveObjectType(SubstCalleeTy),
|
||||
PartialApply->getSubstitutions(), Args,
|
||||
|
||||
Reference in New Issue
Block a user