diff options
Diffstat (limited to 'contrib/llvm-project/lldb/source/Interpreter/CommandObject.cpp')
| -rw-r--r-- | contrib/llvm-project/lldb/source/Interpreter/CommandObject.cpp | 3 | 
1 files changed, 2 insertions, 1 deletions
| diff --git a/contrib/llvm-project/lldb/source/Interpreter/CommandObject.cpp b/contrib/llvm-project/lldb/source/Interpreter/CommandObject.cpp index 719cfbc9e802..4500378c6229 100644 --- a/contrib/llvm-project/lldb/source/Interpreter/CommandObject.cpp +++ b/contrib/llvm-project/lldb/source/Interpreter/CommandObject.cpp @@ -727,7 +727,7 @@ bool CommandObjectParsed::Execute(const char *args_string,    }    if (!handled) {      for (auto entry : llvm::enumerate(cmd_args.entries())) { -      if (!entry.value().ref().empty() && entry.value().ref().front() == '`') { +      if (!entry.value().ref().empty() && entry.value().GetQuoteChar() == '`') {          cmd_args.ReplaceArgumentAtIndex(              entry.index(),              m_interpreter.ProcessEmbeddedScriptCommands(entry.value().c_str())); @@ -741,6 +741,7 @@ bool CommandObjectParsed::Execute(const char *args_string,          if (cmd_args.GetArgumentCount() != 0 && m_arguments.empty()) {            result.AppendErrorWithFormatv("'{0}' doesn't take any arguments.",                                          GetCommandName()); +          Cleanup();            return false;          }          handled = DoExecute(cmd_args, result); | 
