summaryrefslogtreecommitdiffstats
path: root/llvm/lib/Transforms/Utils/LoopSimplify.cpp
diff options
context:
space:
mode:
authorDan Gohman <gohman@apple.com>2009-06-27 22:32:36 +0000
committerDan Gohman <gohman@apple.com>2009-06-27 22:32:36 +0000
commitffdcba3dbdc3d87ef95e309fc158ee08c0edd0ed (patch)
tree22c928db784dc95b3edfbbc69330ec16d3f4f6bb /llvm/lib/Transforms/Utils/LoopSimplify.cpp
parentc8961a424d9ebefd981f894a79562c0d0d592df0 (diff)
downloadbcm5719-llvm-ffdcba3dbdc3d87ef95e309fc158ee08c0edd0ed.tar.gz
bcm5719-llvm-ffdcba3dbdc3d87ef95e309fc158ee08c0edd0ed.zip
Remove the block from the LoopInfo, rather than just the Loop.
LoopInfo will handle removing it from the Loop, as well as updating its own tables. llvm-svn: 74398
Diffstat (limited to 'llvm/lib/Transforms/Utils/LoopSimplify.cpp')
-rw-r--r--llvm/lib/Transforms/Utils/LoopSimplify.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/llvm/lib/Transforms/Utils/LoopSimplify.cpp b/llvm/lib/Transforms/Utils/LoopSimplify.cpp
index d03591081fb..ee3f38a9591 100644
--- a/llvm/lib/Transforms/Utils/LoopSimplify.cpp
+++ b/llvm/lib/Transforms/Utils/LoopSimplify.cpp
@@ -312,7 +312,7 @@ ReprocessLoop:
// update the dominator tree and dominance frontier, and delete it.
assert(pred_begin(ExitingBlock) == pred_end(ExitingBlock));
Changed = true;
- L->removeBlockFromLoop(ExitingBlock);
+ LI->removeBlock(ExitingBlock);
DominanceFrontier *DF = getAnalysisIfAvailable<DominanceFrontier>();
DomTreeNode *Node = DT->getNode(ExitingBlock);
OpenPOWER on IntegriCloud