Re-constify things that don't break the build. Last patch in this

series, I promise.

llvm-svn: 35848
This commit is contained in:
Owen Anderson 2007-04-09 23:38:18 +00:00
parent 461f7ed33b
commit 5d0148ae7c

View File

@ -675,8 +675,10 @@ void LoopSimplify::InsertUniqueBackedgeBlock(Loop *L) {
// Returns true if BasicBlock A dominates at least one block in vector B
// Helper function for UpdateDomInfoForRevectoredPreds
static bool BlockDominatesAny(BasicBlock* A, std::vector<BasicBlock*>& B, ETForest& ETF) {
for (std::vector<BasicBlock*>::iterator BI = B.begin(), BE = B.end(); BI != BE; ++BI) {
static bool BlockDominatesAny(BasicBlock* A, const std::vector<BasicBlock*>& B,
ETForest& ETF) {
for (std::vector<BasicBlock*>::const_iterator BI = B.begin(), BE = B.end();
BI != BE; ++BI) {
if (ETF.dominates(A, *BI))
return true;
}