summaryrefslogtreecommitdiffstats
path: root/llvm/lib/Fuzzer/FuzzerMutate.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'llvm/lib/Fuzzer/FuzzerMutate.cpp')
-rw-r--r--llvm/lib/Fuzzer/FuzzerMutate.cpp5
1 files changed, 2 insertions, 3 deletions
diff --git a/llvm/lib/Fuzzer/FuzzerMutate.cpp b/llvm/lib/Fuzzer/FuzzerMutate.cpp
index 6e3e6b001cd..69680c8a1a4 100644
--- a/llvm/lib/Fuzzer/FuzzerMutate.cpp
+++ b/llvm/lib/Fuzzer/FuzzerMutate.cpp
@@ -29,9 +29,8 @@ struct DictionaryEntry {
struct Dictionary : public std::vector<DictionaryEntry>{
bool ContainsWord(const Word &W) const {
- return end() !=
- std::find_if(begin(), end(),
- [&](const DictionaryEntry &DE) { return DE.W == W; });
+ return std::any_of(begin(), end(),
+ [&](const DictionaryEntry &DE) { return DE.W == W; });
}
};
OpenPOWER on IntegriCloud