summaryrefslogtreecommitdiff
path: root/lib/CodeGen/MachineLICM.cpp
diff options
context:
space:
mode:
authorEvan Cheng <evan.cheng@apple.com>2010-04-13 20:25:29 +0000
committerEvan Cheng <evan.cheng@apple.com>2010-04-13 20:25:29 +0000
commitc15d9135a82525d1b1e52fe79c70e782c15e251e (patch)
treee63e22610bc1d94c3709ad65f01c5064153ddff7 /lib/CodeGen/MachineLICM.cpp
parentaeb2f4aa462949ce067125f2f56dc34df64b25db (diff)
downloadllvm-c15d9135a82525d1b1e52fe79c70e782c15e251e.tar.gz
llvm-c15d9135a82525d1b1e52fe79c70e782c15e251e.tar.bz2
llvm-c15d9135a82525d1b1e52fe79c70e782c15e251e.tar.xz
Avoid variable shadowing.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@101170 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/CodeGen/MachineLICM.cpp')
-rw-r--r--lib/CodeGen/MachineLICM.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/CodeGen/MachineLICM.cpp b/lib/CodeGen/MachineLICM.cpp
index 1db30d8c4e..13a4b85718 100644
--- a/lib/CodeGen/MachineLICM.cpp
+++ b/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()]) {