Skip to content

Commit 5856e1c

Browse files
committed
Remove assert testing for a Any<const LoopNest>
1 parent 771ae5f commit 5856e1c

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

llvm/lib/Transforms/Scalar/LoopPassManager.cpp

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -269,8 +269,7 @@ PreservedAnalyses FunctionToLoopPassAdaptor::run(Function &F,
269269
PI.pushBeforeNonSkippedPassCallback([&LAR, &LI](StringRef PassID, Any IR) {
270270
if (isSpecialPass(PassID, {"PassManager"}))
271271
return;
272-
assert(llvm::any_cast<const Loop *>(&IR) ||
273-
llvm::any_cast<const LoopNest *>(&IR));
272+
assert(llvm::any_cast<const Loop *>(&IR));
274273
const Loop **LPtr = llvm::any_cast<const Loop *>(&IR);
275274
const Loop *L = LPtr ? *LPtr : nullptr;
276275
assert(L && "Loop should be valid for printing");

0 commit comments

Comments
 (0)