[mangle] Convert FunctionSignatureSpecializationMangler::setArgumentClosureProp to use an ArgNo index instead of SILArgument *.

This matches the rest of the methods on FunctionSignatureSpecializationMangler.

Swift SVN r23921
This commit is contained in:
Michael Gottesman
2014-12-14 08:17:30 +00:00
parent 0988b2df9c
commit 1d637f510b
3 changed files with 5 additions and 6 deletions

View File

@@ -86,10 +86,9 @@ setArgumentDead(unsigned ArgNo) {
void
FunctionSignatureSpecializationMangler::
setArgumentClosureProp(SILArgument *Arg, PartialApplyInst *PAI) {
assert(Arg->getFunction() == getFunction() && "Arg not from function");
auto &Info = Args[Arg->getIndex()];
Info.first |= uint8_t(ArgumentModifier::ClosureProp);
setArgumentClosureProp(unsigned ArgNo, PartialApplyInst *PAI) {
auto &Info = Args[ArgNo];
Info.first = uint8_t(ArgumentModifier::ClosureProp);
Info.second = PAI;
}