From 15743309969af16e841c811640262897cf3bd081 Mon Sep 17 00:00:00 2001 From: Kazu Hirata Date: Sun, 8 Jun 2025 09:45:10 -0700 Subject: [PATCH] [llvm] Use std::none_of (NFC) --- llvm/lib/CodeGen/IndirectBrExpandPass.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/llvm/lib/CodeGen/IndirectBrExpandPass.cpp b/llvm/lib/CodeGen/IndirectBrExpandPass.cpp index 15f24207458cf..84f385888b0c7 100644 --- a/llvm/lib/CodeGen/IndirectBrExpandPass.cpp +++ b/llvm/lib/CodeGen/IndirectBrExpandPass.cpp @@ -144,8 +144,8 @@ bool runImpl(Function &F, const TargetLowering *TLI, DomTreeUpdater *DTU) { if (BlockAddressUseIt == BB.use_end()) continue; - assert(std::find_if(std::next(BlockAddressUseIt), BB.use_end(), - IsBlockAddressUse) == BB.use_end() && + assert(std::none_of(std::next(BlockAddressUseIt), BB.use_end(), + IsBlockAddressUse) && "There should only ever be a single blockaddress use because it is " "a constant and should be uniqued.");