aboutsummaryrefslogtreecommitdiff
path: root/llvm/lib/Support/CommandLine.cpp
diff options
context:
space:
mode:
authorserge-sans-paille <sguelton@redhat.com>2022-01-26 05:06:12 -0500
committerserge-sans-paille <sguelton@redhat.com>2022-01-26 11:08:42 +0100
commit7c02776567cc9561e6691dc05235799da45e72d6 (patch)
tree1a658feddab03033363ba36dabcc51796d94eba0 /llvm/lib/Support/CommandLine.cpp
parentdee0c268efadb6babafb8168838dc1060416d9af (diff)
downloadllvm-7c02776567cc9561e6691dc05235799da45e72d6.zip
llvm-7c02776567cc9561e6691dc05235799da45e72d6.tar.gz
llvm-7c02776567cc9561e6691dc05235799da45e72d6.tar.bz2
Fix edb02d8c5df36bb375df7171b4ba61635564dfb4
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 b1e6887..71a6ebf 100644
--- a/llvm/lib/Support/CommandLine.cpp
+++ b/llvm/lib/Support/CommandLine.cpp
@@ -2356,7 +2356,7 @@ protected:
for (size_t I = 0, E = Opts.size(); I != E; ++I) {
Option *Opt = Opts[I].second;
for (auto &Cat : Opt->Categories) {
- assert(std::binary_search(SortedCategories.begin(), SortedCategories.end(), Cat, [](OptionCategory* A, OptionCategory* B) { return OptionCategoryCompare(&A, &B);}) &&
+ assert(find(SortedCategories, Cat) != SortedCategories.end() &&
"Option has an unregistered category");
CategorizedOptions[Cat].push_back(Opt);
}