LoopInfo: Simplify ownership of Loop objects
[oota-llvm.git] / lib / Transforms / Scalar / LoopDeletion.cpp
index bc00ff3f3a424ca94e3a564dd845f44ae8e41077..7b1940b48c31bcdbaaf7360521b01072418fb474 100644 (file)
@@ -245,7 +245,7 @@ bool LoopDeletion::runOnLoop(Loop *L, LPPassManager &) {
     loopInfo.removeBlock(BB);
 
   // The last step is to update LoopInfo now that we've eliminated this loop.
-  loopInfo.updateUnloop(L);
+  loopInfo.markAsRemoved(L);
   Changed = true;
 
   ++NumDeleted;