From: Owen Anderson Date: Mon, 9 Apr 2007 23:38:18 +0000 (+0000) Subject: Re-constify things that don't break the build. Last patch in this X-Git-Url: http://plrg.eecs.uci.edu/git/?a=commitdiff_plain;h=cc221cdf0cf90459bda58969eacac926d0ca6f1c;p=oota-llvm.git Re-constify things that don't break the build. Last patch in this series, I promise. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@35848 91177308-0d34-0410-b5e6-96231b3b80d8 --- diff --git a/lib/Transforms/Utils/LoopSimplify.cpp b/lib/Transforms/Utils/LoopSimplify.cpp index ff03384570e..75991688b10 100644 --- a/lib/Transforms/Utils/LoopSimplify.cpp +++ b/lib/Transforms/Utils/LoopSimplify.cpp @@ -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& B, ETForest& ETF) { - for (std::vector::iterator BI = B.begin(), BE = B.end(); BI != BE; ++BI) { +static bool BlockDominatesAny(BasicBlock* A, const std::vector& B, + ETForest& ETF) { + for (std::vector::const_iterator BI = B.begin(), BE = B.end(); + BI != BE; ++BI) { if (ETF.dominates(A, *BI)) return true; }