Skip to content

Commit 8829503

Browse files
[FuzzMutate] Use llvm::any_of (NFC) (#143227)
Note that llvm::any_of can accommodate std::begin(Range), not just Range.begin().
1 parent 0ef1e69 commit 8829503

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

llvm/lib/FuzzMutate/IRMutator.cpp

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -389,9 +389,9 @@ static bool isUnsupportedFunction(Function *F) {
389389
Attribute::Preallocated, Attribute::ByRef,
390390
Attribute::ZExt, Attribute::SExt};
391391

392-
return std::any_of(
393-
std::begin(ABIAttrs), std::end(ABIAttrs),
394-
[&](Attribute::AttrKind kind) { return A.hasAttribute(kind); });
392+
return llvm::any_of(ABIAttrs, [&](Attribute::AttrKind kind) {
393+
return A.hasAttribute(kind);
394+
});
395395
};
396396

397397
auto FuncAttrs = F->getAttributes();

0 commit comments

Comments
 (0)