[llvm] 8829503 - [FuzzMutate] Use llvm::any_of (NFC) (#143227)

via llvm-commits llvm-commits at lists.llvm.org
Fri Jun 6 22:55:37 PDT 2025


Author: Kazu Hirata
Date: 2025-06-06T22:55:34-07:00
New Revision: 8829503f7a15ce8e6560000b9d49ec500e48ca76

URL: https://github.com/llvm/llvm-project/commit/8829503f7a15ce8e6560000b9d49ec500e48ca76
DIFF: https://github.com/llvm/llvm-project/commit/8829503f7a15ce8e6560000b9d49ec500e48ca76.diff

LOG: [FuzzMutate] Use llvm::any_of (NFC) (#143227)

Note that llvm::any_of can accommodate std::begin(Range), not just
Range.begin().

Added: 
    

Modified: 
    llvm/lib/FuzzMutate/IRMutator.cpp

Removed: 
    


################################################################################
diff  --git a/llvm/lib/FuzzMutate/IRMutator.cpp b/llvm/lib/FuzzMutate/IRMutator.cpp
index 2ab79d25ce6f3..0070fc1a6c7e4 100644
--- a/llvm/lib/FuzzMutate/IRMutator.cpp
+++ b/llvm/lib/FuzzMutate/IRMutator.cpp
@@ -389,9 +389,9 @@ static bool isUnsupportedFunction(Function *F) {
         Attribute::Preallocated,   Attribute::ByRef,
         Attribute::ZExt,           Attribute::SExt};
 
-    return std::any_of(
-        std::begin(ABIAttrs), std::end(ABIAttrs),
-        [&](Attribute::AttrKind kind) { return A.hasAttribute(kind); });
+    return llvm::any_of(ABIAttrs, [&](Attribute::AttrKind kind) {
+      return A.hasAttribute(kind);
+    });
   };
 
   auto FuncAttrs = F->getAttributes();


        


More information about the llvm-commits mailing list