aboutsummaryrefslogtreecommitdiff
path: root/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
commita1baee20c4b042eca1f182fc003f38ab52efc7a9 (patch)
treed14362702b86f8b982625652ea2c4075812f7f3c /lib/Transforms/Utils/LoopSimplify.cpp
parent4b35f83b91a1a313f0730c600e5178aaf7df98d6 (diff)
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. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@74398 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Transforms/Utils/LoopSimplify.cpp')
-rw-r--r--lib/Transforms/Utils/LoopSimplify.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/Transforms/Utils/LoopSimplify.cpp b/lib/Transforms/Utils/LoopSimplify.cpp
index d03591081f..ee3f38a959 100644
--- a/lib/Transforms/Utils/LoopSimplify.cpp
+++ b/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);