CodeGen: Use handy new-fangled post-increment, NFC
authorDuncan P. N. Exon Smith <dexonsmith@apple.com>
Thu, 8 Jan 2015 21:07:55 +0000 (21:07 +0000)
committerDuncan P. N. Exon Smith <dexonsmith@apple.com>
Thu, 8 Jan 2015 21:07:55 +0000 (21:07 +0000)
Drive-by cleanup; I noticed this when reviewing the patch that became
r225466.

llvm-svn: 225468

llvm/lib/CodeGen/CodeGenPrepare.cpp

index 7550df2..daab43e 100644 (file)
@@ -4330,7 +4330,7 @@ bool CodeGenPrepare::PlaceDbgValues(Function &F) {
   for (BasicBlock &BB : F) {
     Instruction *PrevNonDbgInst = nullptr;
     for (BasicBlock::iterator BI = BB.begin(), BE = BB.end(); BI != BE;) {
-      Instruction *Insn = BI; ++BI;
+      Instruction *Insn = BI++;
       DbgValueInst *DVI = dyn_cast<DbgValueInst>(Insn);
       // Leave dbg.values that refer to an alloca alone. These
       // instrinsics describe the address of a variable (= the alloca)