[llvm-commits] CVS: llvm/lib/Transforms/Utils/LoopSimplify.cpp
Devang Patel
dpatel at apple.com
Mon Jun 11 14:25:54 PDT 2007
Changes in directory llvm/lib/Transforms/Utils:
LoopSimplify.cpp updated: 1.101 -> 1.102
---
Log message:
simplify
---
Diffs of the changes: (+3 -4)
LoopSimplify.cpp | 7 +++----
1 files changed, 3 insertions(+), 4 deletions(-)
Index: llvm/lib/Transforms/Utils/LoopSimplify.cpp
diff -u llvm/lib/Transforms/Utils/LoopSimplify.cpp:1.101 llvm/lib/Transforms/Utils/LoopSimplify.cpp:1.102
--- llvm/lib/Transforms/Utils/LoopSimplify.cpp:1.101 Mon Jun 11 16:18:00 2007
+++ llvm/lib/Transforms/Utils/LoopSimplify.cpp Mon Jun 11 16:25:31 2007
@@ -708,10 +708,9 @@
void LoopSimplify::UpdateDomInfoForRevectoredPreds(BasicBlock *NewBB,
std::vector<BasicBlock*> &PredBlocks) {
assert(!PredBlocks.empty() && "No predblocks??");
- assert(succ_begin(NewBB) != succ_end(NewBB) &&
- ++succ_begin(NewBB) == succ_end(NewBB) &&
- "NewBB should have a single successor!");
- BasicBlock *NewBBSucc = *succ_begin(NewBB);
+ assert(NewBB->getTerminator()->getNumSuccessors() == 1
+ && "NewBB should have a single successor!");
+ BasicBlock *NewBBSucc = NewBB->getTerminator()->getSuccessor(0);
DominatorTree &DT = getAnalysis<DominatorTree>();
// The newly inserted basic block will dominate existing basic blocks iff the
More information about the llvm-commits
mailing list