summaryrefslogtreecommitdiffstats
path: root/llvm
diff options
context:
space:
mode:
authorDuncan P. N. Exon Smith <dexonsmith@apple.com>2016-02-27 20:27:44 +0000
committerDuncan P. N. Exon Smith <dexonsmith@apple.com>2016-02-27 20:27:44 +0000
commitebcce78f65b0048b86c97a879d5f8ea13f528984 (patch)
treeb0c1422e9a821fd2062d38d259d435aad791c6cb /llvm
parent3a61985b2fe922ee7c94c0aa148fad046347829d (diff)
downloadbcm5719-llvm-ebcce78f65b0048b86c97a879d5f8ea13f528984.tar.gz
bcm5719-llvm-ebcce78f65b0048b86c97a879d5f8ea13f528984.zip
CodeGen: Remove an iterator => pointer conversion, NFC
Part of PR26753. llvm-svn: 262154
Diffstat (limited to 'llvm')
-rw-r--r--llvm/lib/CodeGen/BranchFolding.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/llvm/lib/CodeGen/BranchFolding.cpp b/llvm/lib/CodeGen/BranchFolding.cpp
index c580d0e2d1e..76292acab86 100644
--- a/llvm/lib/CodeGen/BranchFolding.cpp
+++ b/llvm/lib/CodeGen/BranchFolding.cpp
@@ -1277,9 +1277,9 @@ ReoptimizeBlock:
&& PrevBBIter->isDebugValue() && MBBIter->isDebugValue()) {
if (!MBBIter->isIdenticalTo(*PrevBBIter))
break;
- MachineInstr *DuplicateDbg = MBBIter;
+ MachineInstr &DuplicateDbg = *MBBIter;
++MBBIter; -- PrevBBIter;
- DuplicateDbg->eraseFromParent();
+ DuplicateDbg.eraseFromParent();
}
}
PrevBB.splice(PrevBB.end(), MBB, MBB->begin(), MBB->end());
OpenPOWER on IntegriCloud