Skip to content

Commit

Permalink
Revert "Fix build issue in assert mode introduced by 6427f4c"
Browse files Browse the repository at this point in the history
  • Loading branch information
nico committed Jan 25, 2022
1 parent d65a3b3 commit 1c82fdb
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions llvm/lib/Support/CommandLine.cpp
Expand Up @@ -2356,9 +2356,7 @@ class CategorizedHelpPrinter : public HelpPrinter {
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,
OptionCategoryCompare) &&
assert(CategorizedOptions.count(Cat) > 0 &&
"Option has an unregistered category");
CategorizedOptions[Cat].push_back(Opt);
}
Expand Down

0 comments on commit 1c82fdb

Please sign in to comment.