From 76166a1ac7140bb1b577f198c95cb7e9dd67a10b Mon Sep 17 00:00:00 2001 From: Simon Pilgrim Date: Tue, 5 Nov 2019 16:46:10 +0000 Subject: [PATCH] Use iterator prefix increment. NFCI. --- llvm/lib/CodeGen/MachineOutliner.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/llvm/lib/CodeGen/MachineOutliner.cpp b/llvm/lib/CodeGen/MachineOutliner.cpp index 9c61bcee35c1..46e6e7516dd2 100644 --- a/llvm/lib/CodeGen/MachineOutliner.cpp +++ b/llvm/lib/CodeGen/MachineOutliner.cpp @@ -763,7 +763,7 @@ struct InstructionMapper { std::vector UnsignedVecForMBB; std::vector InstrListForMBB; - for (MachineBasicBlock::iterator Et = MBB.end(); It != Et; It++) { + for (MachineBasicBlock::iterator Et = MBB.end(); It != Et; ++It) { // Keep track of where this instruction is in the module. switch (TII.getOutliningType(It, Flags)) { case InstrType::Illegal: