BPF: Remove implicit ilist iterator conversion, NFC
[oota-llvm.git] / lib / Target / BPF / BPFISelLowering.cpp
index 73418283d9bf6b38479bcddad786634cfdf465a8..6a5b37e153d86b631fe2ffdb1e9863e559291e37 100644 (file)
@@ -547,8 +547,7 @@ BPFTargetLowering::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 I = BB;
-  ++I;
+  MachineFunction::iterator I = ++BB->getIterator();
 
   // ThisMBB:
   // ...