summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: 40cd57e)
raw | patch | inline | side by side (parent: 40cd57e)
author | Duncan P. N. Exon Smith <dexonsmith@apple.com> | |
Thu, 8 Jan 2015 21:07:55 +0000 (21:07 +0000) | ||
committer | Duncan 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.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@225468 91177308-0d34-0410-b5e6-96231b3b80d8
r225466.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@225468 91177308-0d34-0410-b5e6-96231b3b80d8
lib/CodeGen/CodeGenPrepare.cpp | patch | blob | history |
index 7550df278e5d7cefe69a8dec2bc5b2ff1e6eb39c..daab43e7f535419367bf34add11030942ddf8637 100644 (file)
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)