First chunk of MachineInstr bundle support.
[oota-llvm.git] / lib / Target / ARM / ARMBaseInstrInfo.cpp
index 413c0a5197c398c637d918efa597c476e157f172..e3785f5634222691fe11423100a2ca6ad5a9d6bc 100644 (file)
@@ -1762,8 +1762,7 @@ OptimizeCompareInstr(MachineInstr *CmpInstr, unsigned SrcReg, int CmpMask,
 
   // Check that CPSR isn't set between the comparison instruction and the one we
   // want to change.
-  MachineBasicBlock::const_iterator I = CmpInstr, E = MI,
-    B = MI->getParent()->begin();
+  MachineBasicBlock::iterator I = CmpInstr,E = MI, B = MI->getParent()->begin();
 
   // Early exit if CmpInstr is at the beginning of the BB.
   if (I == B) return false;