diff options
author | Duncan P. N. Exon Smith <dexonsmith@apple.com> | 2016-02-27 20:27:44 +0000 |
---|---|---|
committer | Duncan P. N. Exon Smith <dexonsmith@apple.com> | 2016-02-27 20:27:44 +0000 |
commit | ebcce78f65b0048b86c97a879d5f8ea13f528984 (patch) | |
tree | b0c1422e9a821fd2062d38d259d435aad791c6cb /llvm/lib | |
parent | 3a61985b2fe922ee7c94c0aa148fad046347829d (diff) | |
download | bcm5719-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/lib')
-rw-r--r-- | llvm/lib/CodeGen/BranchFolding.cpp | 4 |
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()); |