From: Evan Cheng Date: Tue, 13 Apr 2010 20:25:29 +0000 (+0000) Subject: Avoid variable shadowing. X-Git-Url: http://demsky.eecs.uci.edu/git/?a=commitdiff_plain;h=c15d9135a82525d1b1e52fe79c70e782c15e251e;p=oota-llvm.git Avoid variable shadowing. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@101170 91177308-0d34-0410-b5e6-96231b3b80d8 --- diff --git a/lib/CodeGen/MachineLICM.cpp b/lib/CodeGen/MachineLICM.cpp index 1db30d8c4e6..13a4b857188 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()]) {