mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-05-28 15:38:57 +00:00
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
This commit is contained in:
parent
2b95fd67da
commit
cc221cdf0c
@ -675,8 +675,10 @@ void LoopSimplify::InsertUniqueBackedgeBlock(Loop *L) {
|
|||||||
|
|
||||||
// Returns true if BasicBlock A dominates at least one block in vector B
|
// Returns true if BasicBlock A dominates at least one block in vector B
|
||||||
// Helper function for UpdateDomInfoForRevectoredPreds
|
// Helper function for UpdateDomInfoForRevectoredPreds
|
||||||
static bool BlockDominatesAny(BasicBlock* A, std::vector<BasicBlock*>& B, ETForest& ETF) {
|
static bool BlockDominatesAny(BasicBlock* A, const std::vector<BasicBlock*>& B,
|
||||||
for (std::vector<BasicBlock*>::iterator BI = B.begin(), BE = B.end(); BI != BE; ++BI) {
|
ETForest& ETF) {
|
||||||
|
for (std::vector<BasicBlock*>::const_iterator BI = B.begin(), BE = B.end();
|
||||||
|
BI != BE; ++BI) {
|
||||||
if (ETF.dominates(A, *BI))
|
if (ETF.dominates(A, *BI))
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user