Const correctness fixes
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@7349 91177308-0d34-0410-b5e6-96231b3b80d8
diff --git a/lib/CodeGen/PHIElimination.cpp b/lib/CodeGen/PHIElimination.cpp
index e221bd7..cce1c5d 100644
--- a/lib/CodeGen/PHIElimination.cpp
+++ b/lib/CodeGen/PHIElimination.cpp
@@ -200,8 +200,8 @@
// at an appropriate point later.
//
bool ValueIsLive = false;
- BasicBlock *BB = opBlock.getBasicBlock();
- for (succ_iterator SI = succ_begin(BB), E = succ_end(BB);
+ const BasicBlock *BB = opBlock.getBasicBlock();
+ for (succ_const_iterator SI = succ_begin(BB), E = succ_end(BB);
SI != E && !ValueIsLive; ++SI) {
const std::pair<MachineBasicBlock*, unsigned> &
SuccInfo = LV->getBasicBlockInfo(*SI);