projects
/
platform
/
upstream
/
llvm.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
dee0c26
)
Fix edb02d8c5df36bb375df7171b4ba61635564dfb4
author
serge-sans-paille
<sguelton@redhat.com>
Wed, 26 Jan 2022 10:06:12 +0000
(
05:06
-0500)
committer
serge-sans-paille
<sguelton@redhat.com>
Wed, 26 Jan 2022 10:08:42 +0000
(11:08 +0100)
llvm/lib/Support/CommandLine.cpp
patch
|
blob
|
history
diff --git
a/llvm/lib/Support/CommandLine.cpp
b/llvm/lib/Support/CommandLine.cpp
index
b1e6887
..
71a6ebf
100644
(file)
--- 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);
}