[llvm] r262154 - CodeGen: Remove an iterator => pointer conversion, NFC
Duncan P. N. Exon Smith via llvm-commits
llvm-commits at lists.llvm.org
Sat Feb 27 12:27:44 PST 2016
Author: dexonsmith
Date: Sat Feb 27 14:27:44 2016
New Revision: 262154
URL: http://llvm.org/viewvc/llvm-project?rev=262154&view=rev
Log:
CodeGen: Remove an iterator => pointer conversion, NFC
Part of PR26753.
Modified:
llvm/trunk/lib/CodeGen/BranchFolding.cpp
Modified: llvm/trunk/lib/CodeGen/BranchFolding.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/CodeGen/BranchFolding.cpp?rev=262154&r1=262153&r2=262154&view=diff
==============================================================================
--- llvm/trunk/lib/CodeGen/BranchFolding.cpp (original)
+++ llvm/trunk/lib/CodeGen/BranchFolding.cpp Sat Feb 27 14:27:44 2016
@@ -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());
More information about the llvm-commits
mailing list