Avoid variable shadowing.

llvm-svn: 101170
This commit is contained in:
Evan Cheng 2010-04-13 20:25:29 +00:00
parent ea70a17626
commit cce672c172
1 changed files with 2 additions and 2 deletions

View File

@ -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()]) {