File tree Expand file tree Collapse file tree 1 file changed +5
-6
lines changed Expand file tree Collapse file tree 1 file changed +5
-6
lines changed Original file line number Diff line number Diff line change @@ -73,12 +73,11 @@ static StringRef extractOmpClauseName(Record *clause) {
73
73
static bool verifyArgument (DagInit *arguments, StringRef argName,
74
74
Init *argInit) {
75
75
auto range = zip_equal (arguments->getArgNames (), arguments->getArgs ());
76
- return std::find_if (
77
- range.begin (), range.end (),
78
- [&](std::tuple<llvm::StringInit *const &, llvm::Init *const &> v) {
79
- return std::get<0 >(v)->getAsUnquotedString () == argName &&
80
- std::get<1 >(v) == argInit;
81
- }) != range.end ();
76
+ return llvm::any_of (
77
+ range, [&](std::tuple<llvm::StringInit *const &, llvm::Init *const &> v) {
78
+ return std::get<0 >(v)->getAsUnquotedString () == argName &&
79
+ std::get<1 >(v) == argInit;
80
+ });
82
81
}
83
82
84
83
// / Check that the given string record value, identified by its name \c value,
You can’t perform that action at this time.
0 commit comments