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
This commit is contained in:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user