diff options
Diffstat (limited to 'llvm/lib/Transforms/Utils/SimplifyCFG.cpp')
-rw-r--r-- | llvm/lib/Transforms/Utils/SimplifyCFG.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/llvm/lib/Transforms/Utils/SimplifyCFG.cpp b/llvm/lib/Transforms/Utils/SimplifyCFG.cpp index 6bf4ea3..8094697 100644 --- a/llvm/lib/Transforms/Utils/SimplifyCFG.cpp +++ b/llvm/lib/Transforms/Utils/SimplifyCFG.cpp @@ -367,7 +367,7 @@ safeToMergeTerminators(Instruction *SI1, Instruction *SI2, BasicBlock *SI1BB = SI1->getParent(); BasicBlock *SI2BB = SI2->getParent(); - SmallPtrSet<BasicBlock *, 16> SI1Succs(succ_begin(SI1BB), succ_end(SI1BB)); + SmallPtrSet<BasicBlock *, 16> SI1Succs(llvm::from_range, successors(SI1BB)); bool Fail = false; for (BasicBlock *Succ : successors(SI2BB)) { if (!SI1Succs.count(Succ)) @@ -1332,7 +1332,7 @@ bool SimplifyCFGOpt::performValueComparisonIntoPredecessorFolding( // successors. SmallPtrSet<BasicBlock *, 2> SuccsOfPred; if (DTU) { - SuccsOfPred = {succ_begin(Pred), succ_end(Pred)}; + SuccsOfPred = {llvm::from_range, successors(Pred)}; Updates.reserve(Updates.size() + NewSuccessors.size()); } for (const std::pair<BasicBlock *, int /*Num*/> &NewSuccessor : |