aboutsummaryrefslogtreecommitdiff
path: root/lldb/source/Interpreter/CommandAlias.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'lldb/source/Interpreter/CommandAlias.cpp')
-rw-r--r--lldb/source/Interpreter/CommandAlias.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/lldb/source/Interpreter/CommandAlias.cpp b/lldb/source/Interpreter/CommandAlias.cpp
index eba5cb5..86308ae 100644
--- a/lldb/source/Interpreter/CommandAlias.cpp
+++ b/lldb/source/Interpreter/CommandAlias.cpp
@@ -226,7 +226,8 @@ CommandAlias::IsDashDashCommand ()
for (const OptionArgPair& opt_arg : *GetOptionArguments())
{
if (opt_arg.first == "<argument>" &&
- opt_arg.second.second == " --")
+ !opt_arg.second.second.empty() &&
+ llvm::StringRef(opt_arg.second.second).endswith("--"))
{
m_is_dashdash_alias = eLazyBoolYes;
break;