[llvm] 76166a1 - Use iterator prefix increment. NFCI.
Simon Pilgrim via llvm-commits
llvm-commits at lists.llvm.org
Tue Nov 5 09:09:11 PST 2019
Author: Simon Pilgrim
Date: 2019-11-05T17:08:08Z
New Revision: 76166a1ac7140bb1b577f198c95cb7e9dd67a10b
URL: https://github.com/llvm/llvm-project/commit/76166a1ac7140bb1b577f198c95cb7e9dd67a10b
DIFF: https://github.com/llvm/llvm-project/commit/76166a1ac7140bb1b577f198c95cb7e9dd67a10b.diff
LOG: Use iterator prefix increment. NFCI.
Added:
Modified:
llvm/lib/CodeGen/MachineOutliner.cpp
Removed:
################################################################################
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<unsigned> UnsignedVecForMBB;
std::vector<MachineBasicBlock::iterator> 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:
More information about the llvm-commits
mailing list