summaryrefslogtreecommitdiffstats
path: root/llvm/lib/CodeGen/PHIElimination.cpp
diff options
context:
space:
mode:
authorChris Lattner <sabre@nondot.org>2003-07-26 23:24:56 +0000
committerChris Lattner <sabre@nondot.org>2003-07-26 23:24:56 +0000
commit414832fea6de1c13f27ac9b6a38f693495791c26 (patch)
treea477172dcc4ef3fa73da419afce67880197f4457 /llvm/lib/CodeGen/PHIElimination.cpp
parent0ed86aca7158ff5bfeaca08dd7a27f063f833ad0 (diff)
downloadbcm5719-llvm-414832fea6de1c13f27ac9b6a38f693495791c26.tar.gz
bcm5719-llvm-414832fea6de1c13f27ac9b6a38f693495791c26.zip
Const correctness fixes
llvm-svn: 7349
Diffstat (limited to 'llvm/lib/CodeGen/PHIElimination.cpp')
-rw-r--r--llvm/lib/CodeGen/PHIElimination.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/llvm/lib/CodeGen/PHIElimination.cpp b/llvm/lib/CodeGen/PHIElimination.cpp
index e221bd74ab1..cce1c5d94a5 100644
--- a/llvm/lib/CodeGen/PHIElimination.cpp
+++ b/llvm/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);
OpenPOWER on IntegriCloud