diff options
author | Chris Lattner <sabre@nondot.org> | 2003-07-26 23:24:56 +0000 |
---|---|---|
committer | Chris Lattner <sabre@nondot.org> | 2003-07-26 23:24:56 +0000 |
commit | 9e2dd8f8d7c995721584d8c7add309e5d9cb1051 (patch) | |
tree | 91f1183d9cb69abf0c087d8caf0bcfc06c46b978 /lib/CodeGen/PHIElimination.cpp | |
parent | 9cdaa63f576de1a1bcb31b3436280a15c7d97c4d (diff) |
Const correctness fixes
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@7349 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/CodeGen/PHIElimination.cpp')
-rw-r--r-- | lib/CodeGen/PHIElimination.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/CodeGen/PHIElimination.cpp b/lib/CodeGen/PHIElimination.cpp index e221bd74ab..cce1c5d94a 100644 --- a/lib/CodeGen/PHIElimination.cpp +++ b/lib/CodeGen/PHIElimination.cpp @@ -200,8 +200,8 @@ bool PNE::EliminatePHINodes(MachineFunction &MF, MachineBasicBlock &MBB) { // 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); |