[llvm-commits] CVS: llvm/lib/Transforms/Utils/LoopSimplify.cpp
Owen Anderson
resistor at mac.com
Mon Apr 9 16:38:36 PDT 2007
Changes in directory llvm/lib/Transforms/Utils:
LoopSimplify.cpp updated: 1.89 -> 1.90
---
Log message:
Re-constify things that don't break the build. Last patch in this
series, I promise.
---
Diffs of the changes: (+4 -2)
LoopSimplify.cpp | 6 ++++--
1 files changed, 4 insertions(+), 2 deletions(-)
Index: llvm/lib/Transforms/Utils/LoopSimplify.cpp
diff -u llvm/lib/Transforms/Utils/LoopSimplify.cpp:1.89 llvm/lib/Transforms/Utils/LoopSimplify.cpp:1.90
--- llvm/lib/Transforms/Utils/LoopSimplify.cpp:1.89 Mon Apr 9 18:08:26 2007
+++ llvm/lib/Transforms/Utils/LoopSimplify.cpp Mon Apr 9 18:38:18 2007
@@ -675,8 +675,10 @@
// 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;
}
More information about the llvm-commits
mailing list