mirror of
https://github.com/apple/swift.git
synced 2025-12-21 12:14:44 +01:00
[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:
@@ -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;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user