mirror of
https://github.com/apple/swift.git
synced 2025-12-21 12:14:44 +01:00
[SIL] Teach *ApplyInst to traffic in SubstitutionMap.
Push SubstitutionMaps through most of SILGen and the SIL optimizers that involve the various *ApplyInsts.
This commit is contained in:
@@ -871,7 +871,7 @@ specializePartialApply(PartialApplyInst *PartialApply,
|
||||
SILValue FunctionRef = Builder.createFunctionRef(PartialApply->getLoc(),
|
||||
ClonedFn);
|
||||
return Builder.createPartialApply(
|
||||
PartialApply->getLoc(), FunctionRef, PartialApply->getSubstitutions(),
|
||||
PartialApply->getLoc(), FunctionRef, PartialApply->getSubstitutionMap(),
|
||||
Args,
|
||||
PartialApply->getType().getAs<SILFunctionType>()->getCalleeConvention());
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user