[llvm] 9042841 - [llvm] Use std::none_of (NFC) (#143320)

via llvm-commits llvm-commits at lists.llvm.org
Sun Jun 8 16:18:41 PDT 2025


Author: Kazu Hirata
Date: 2025-06-08T16:18:38-07:00
New Revision: 90428419a5dc4c13b93741afa02d3a9aa695452f

URL: https://github.com/llvm/llvm-project/commit/90428419a5dc4c13b93741afa02d3a9aa695452f
DIFF: https://github.com/llvm/llvm-project/commit/90428419a5dc4c13b93741afa02d3a9aa695452f.diff

LOG: [llvm] Use std::none_of (NFC) (#143320)

Added: 
    

Modified: 
    llvm/lib/CodeGen/IndirectBrExpandPass.cpp

Removed: 
    


################################################################################
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.");
 


        


More information about the llvm-commits mailing list