[llvm-commits] [llvm] r101170 - /llvm/trunk/lib/CodeGen/MachineLICM.cpp
Evan Cheng
evan.cheng at apple.com
Tue Apr 13 13:25:29 PDT 2010
Author: evancheng
Date: Tue Apr 13 15:25:29 2010
New Revision: 101170
URL: http://llvm.org/viewvc/llvm-project?rev=101170&view=rev
Log:
Avoid variable shadowing.
Modified:
llvm/trunk/lib/CodeGen/MachineLICM.cpp
Modified: llvm/trunk/lib/CodeGen/MachineLICM.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/CodeGen/MachineLICM.cpp?rev=101170&r1=101169&r2=101170&view=diff
==============================================================================
--- llvm/trunk/lib/CodeGen/MachineLICM.cpp (original)
+++ llvm/trunk/lib/CodeGen/MachineLICM.cpp Tue Apr 13 15:25:29 2010
@@ -404,8 +404,8 @@
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()]) {
More information about the llvm-commits
mailing list