From d4e3e1e548793c6686e19f8ba50bf62f3fde7545 Mon Sep 17 00:00:00 2001 From: Michael Liao Date: Tue, 22 Sep 2020 17:33:38 -0400 Subject: [PATCH] Fix build due to renaming in LoopInfo. --- llvm/unittests/Transforms/Scalar/LoopPassManagerTest.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/llvm/unittests/Transforms/Scalar/LoopPassManagerTest.cpp b/llvm/unittests/Transforms/Scalar/LoopPassManagerTest.cpp index 8bec962..c5b3e29 100644 --- a/llvm/unittests/Transforms/Scalar/LoopPassManagerTest.cpp +++ b/llvm/unittests/Transforms/Scalar/LoopPassManagerTest.cpp @@ -1390,7 +1390,7 @@ TEST_F(LoopPassManagerTest, LoopDeletion) { // have no PHI nodes and there is always a single i-dom. auto EraseLoop = [](Loop &L, BasicBlock &IDomBB, LoopStandardAnalysisResults &AR, LPMUpdater &Updater) { - assert(L.empty() && "Can only delete leaf loops with this routine!"); + assert(L.isInnermost() && "Can only delete leaf loops with this routine!"); SmallVector LoopBBs(L.block_begin(), L.block_end()); Updater.markLoopAsDeleted(L, L.getName()); IDomBB.getTerminator()->replaceUsesOfWith(L.getHeader(), -- 2.7.4