Revert "Trying to understand the TestHelp.py failure from 6c089b2."
authorJim Ingham <jingham@apple.com>
Tue, 13 Sep 2022 21:58:27 +0000 (14:58 -0700)
committerJim Ingham <jingham@apple.com>
Tue, 13 Sep 2022 21:58:27 +0000 (14:58 -0700)
It didn't help.

This reverts commit 81f8788528886ee611041e1f4ee54eea8bbfa277.

lldb/source/Interpreter/CommandAlias.cpp

index 80a926e..e36edca 100644 (file)
@@ -180,7 +180,7 @@ bool CommandAlias::IsDashDashCommand() {
 
   for (const auto &opt_entry : *GetOptionArguments()) {
     std::tie(opt, std::ignore, value) = opt_entry;
-    if (opt == "<argument>" && !value.empty() &&
+    if (opt == CommandInterpreter::g_argument && !value.empty() &&
         llvm::StringRef(value).endswith("--")) {
       m_is_dashdash_alias = eLazyBoolYes;
       break;