[llvm] [CommandLine][NFCI] Do not add 'All' to 'RegisteredSubCommands' (PR #77041)
Simon Pilgrim via llvm-commits
llvm-commits at lists.llvm.org
Tue Jan 9 03:19:24 PST 2024
================
@@ -532,8 +527,7 @@ SubCommand *CommandLineParser::LookupSubCommand(StringRef Name,
// Find a subcommand with the edit distance == 1.
SubCommand *NearestMatch = nullptr;
for (auto *S : RegisteredSubCommands) {
- if (S == &SubCommand::getAll())
- continue;
+ assert(S != &SubCommand::getAll());
----------------
RKSimon wrote:
(style) assertion message
https://github.com/llvm/llvm-project/pull/77041
More information about the llvm-commits
mailing list