aboutsummaryrefslogtreecommitdiffstats
path: root/lib/Transforms
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
commita42d60dc86dba4c3eefa9eaba263f2f465b3c397 (patch)
treed14362702b86f8b982625652ea2c4075812f7f3c /lib/Transforms
parent7ba0640b33b6beb617078845c8b4ead4e51772c5 (diff)
downloadexternal_llvm-a42d60dc86dba4c3eefa9eaba263f2f465b3c397.zip
external_llvm-a42d60dc86dba4c3eefa9eaba263f2f465b3c397.tar.gz
external_llvm-a42d60dc86dba4c3eefa9eaba263f2f465b3c397.tar.bz2
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')
-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 d035910..ee3f38a 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);