summaryrefslogtreecommitdiffstats
path: root/llvm/lib
diff options
context:
space:
mode:
authorDuncan P. N. Exon Smith <dexonsmith@apple.com>2015-01-08 21:07:55 +0000
committerDuncan P. N. Exon Smith <dexonsmith@apple.com>2015-01-08 21:07:55 +0000
commite90f1165d84501de27e1ff30f0f5414cb9b5d3e3 (patch)
tree3070315ba9cf16ec5aa2e1dbc70be5217d00e7b9 /llvm/lib
parent442b40c2eb0f047d96182d1f991858dcdb8a372b (diff)
downloadbcm5719-llvm-e90f1165d84501de27e1ff30f0f5414cb9b5d3e3.tar.gz
bcm5719-llvm-e90f1165d84501de27e1ff30f0f5414cb9b5d3e3.zip
CodeGen: Use handy new-fangled post-increment, NFC
Drive-by cleanup; I noticed this when reviewing the patch that became r225466. llvm-svn: 225468
Diffstat (limited to 'llvm/lib')
-rw-r--r--llvm/lib/CodeGen/CodeGenPrepare.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/llvm/lib/CodeGen/CodeGenPrepare.cpp b/llvm/lib/CodeGen/CodeGenPrepare.cpp
index 7550df278e5..daab43e7f53 100644
--- a/llvm/lib/CodeGen/CodeGenPrepare.cpp
+++ b/llvm/lib/CodeGen/CodeGenPrepare.cpp
@@ -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)
OpenPOWER on IntegriCloud