Rename a parameter to avoid confusion with a local variable

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@118656 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
Matt Beaumont-Gay
2010-11-10 00:08:58 +00:00
parent 8e8b18bcfa
commit cc8d10e1a8

View File

@@ -326,15 +326,15 @@ public:
static ARMOperand * static ARMOperand *
CreateRegList(const SmallVectorImpl<std::pair<unsigned, SMLoc> > &Regs, CreateRegList(const SmallVectorImpl<std::pair<unsigned, SMLoc> > &Regs,
SMLoc S, SMLoc E) { SMLoc StartLoc, SMLoc EndLoc) {
ARMOperand *Op = new ARMOperand(RegisterList); ARMOperand *Op = new ARMOperand(RegisterList);
Op->RegList.Registers = new SmallVector<unsigned, 32>(); Op->RegList.Registers = new SmallVector<unsigned, 32>();
for (SmallVectorImpl<std::pair<unsigned, SMLoc> >::const_iterator for (SmallVectorImpl<std::pair<unsigned, SMLoc> >::const_iterator
I = Regs.begin(), E = Regs.end(); I != E; ++I) I = Regs.begin(), E = Regs.end(); I != E; ++I)
Op->RegList.Registers->push_back(I->first); Op->RegList.Registers->push_back(I->first);
std::sort(Op->RegList.Registers->begin(), Op->RegList.Registers->end()); std::sort(Op->RegList.Registers->begin(), Op->RegList.Registers->end());
Op->StartLoc = S; Op->StartLoc = StartLoc;
Op->EndLoc = E; Op->EndLoc = EndLoc;
return Op; return Op;
} }