diff options
author | Evan Cheng <evan.cheng@apple.com> | 2010-04-13 20:25:29 +0000 |
---|---|---|
committer | Evan Cheng <evan.cheng@apple.com> | 2010-04-13 20:25:29 +0000 |
commit | cce672c1720d7760181f970663bcb0c00a9a7b89 (patch) | |
tree | e1ff657e148b78529a6a31603cd61d72c340143e /llvm/lib/CodeGen/MachineLICM.cpp | |
parent | ea70a17626beb5621a623f9d3b192014d95c5bf3 (diff) | |
download | bcm5719-llvm-cce672c1720d7760181f970663bcb0c00a9a7b89.tar.gz bcm5719-llvm-cce672c1720d7760181f970663bcb0c00a9a7b89.zip |
Avoid variable shadowing.
llvm-svn: 101170
Diffstat (limited to 'llvm/lib/CodeGen/MachineLICM.cpp')
-rw-r--r-- | llvm/lib/CodeGen/MachineLICM.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/llvm/lib/CodeGen/MachineLICM.cpp b/llvm/lib/CodeGen/MachineLICM.cpp index 1db30d8c4e6..13a4b857188 100644 --- a/llvm/lib/CodeGen/MachineLICM.cpp +++ b/llvm/lib/CodeGen/MachineLICM.cpp @@ -404,8 +404,8 @@ void MachineLICM::HoistRegionPostRA(MachineDomTreeNode *N) { if (PhysRegDefs[Candidates[i].Def] == 1) { bool Safe = true; MachineInstr *MI = Candidates[i].MI; - for (unsigned i = 0, e = MI->getNumOperands(); i != e; ++i) { - const MachineOperand &MO = MI->getOperand(i); + for (unsigned j = 0, ee = MI->getNumOperands(); j != ee; ++j) { + const MachineOperand &MO = MI->getOperand(j); if (!MO.isReg() || MO.isDef()) continue; if (PhysRegDefs[MO.getReg()]) { |