XCore: Remove implicit ilist iterator conversions, NFC
[oota-llvm.git] / lib / Target / XCore / XCoreISelLowering.cpp
index d892c79ae147a6d8fc6e58b9f5cb9e206841c115..28735567721410618917a3a24d7537e53f5bd932 100644 (file)
@@ -1565,8 +1565,7 @@ XCoreTargetLowering::EmitInstrWithCustomInserter(MachineInstr *MI,
   // to set, the condition code register to branch on, the true/false values to
   // select between, and a branch opcode to use.
   const BasicBlock *LLVM_BB = BB->getBasicBlock();
-  MachineFunction::iterator It = BB;
-  ++It;
+  MachineFunction::iterator It = ++BB->getIterator();
 
   //  thisMBB:
   //  ...