From: Duncan P. N. Exon Smith Date: Tue, 20 Oct 2015 00:02:50 +0000 (+0000) Subject: BPF: Remove implicit ilist iterator conversion, NFC X-Git-Url: http://demsky.eecs.uci.edu/git/?a=commitdiff_plain;h=2b76674c16a5e56c47c4de3cc7bbc5db4f79b398;p=oota-llvm.git BPF: Remove implicit ilist iterator conversion, NFC git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@250765 91177308-0d34-0410-b5e6-96231b3b80d8 --- diff --git a/lib/Target/BPF/BPFISelLowering.cpp b/lib/Target/BPF/BPFISelLowering.cpp index 73418283d9b..6a5b37e153d 100644 --- a/lib/Target/BPF/BPFISelLowering.cpp +++ b/lib/Target/BPF/BPFISelLowering.cpp @@ -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: // ...