[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:
Doug Gregor
2018-05-04 15:11:45 -07:00
parent 04e6e5d7a6
commit 4b5abbddbc
44 changed files with 208 additions and 313 deletions

View File

@@ -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());
}