aboutsummaryrefslogtreecommitdiff
path: root/llvm/lib/Support/CommandLine.cpp
diff options
context:
space:
mode:
authorKazu Hirata <kazu@google.com>2022-07-20 09:09:19 -0700
committerKazu Hirata <kazu@google.com>2022-07-20 09:09:19 -0700
commit360c1111e358c4c7e8591953ce9548d60c9410a6 (patch)
tree23e5e58db766990563252f91761b9d7f33cc72ef /llvm/lib/Support/CommandLine.cpp
parent993625be80d602327b12c814ae7ea736e51bf693 (diff)
downloadllvm-360c1111e358c4c7e8591953ce9548d60c9410a6.zip
llvm-360c1111e358c4c7e8591953ce9548d60c9410a6.tar.gz
llvm-360c1111e358c4c7e8591953ce9548d60c9410a6.tar.bz2
Use llvm::is_contained (NFC)
Diffstat (limited to 'llvm/lib/Support/CommandLine.cpp')
-rw-r--r--llvm/lib/Support/CommandLine.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/llvm/lib/Support/CommandLine.cpp b/llvm/lib/Support/CommandLine.cpp
index e3df172..5e7d631 100644
--- a/llvm/lib/Support/CommandLine.cpp
+++ b/llvm/lib/Support/CommandLine.cpp
@@ -2382,7 +2382,7 @@ protected:
for (size_t I = 0, E = Opts.size(); I != E; ++I) {
Option *Opt = Opts[I].second;
for (auto &Cat : Opt->Categories) {
- assert(find(SortedCategories, Cat) != SortedCategories.end() &&
+ assert(llvm::is_contained(SortedCategories, Cat) &&
"Option has an unregistered category");
CategorizedOptions[Cat].push_back(Opt);
}