diff --git a/lldb/source/Interpreter/CommandObject.cpp b/lldb/source/Interpreter/CommandObject.cpp index fc1d70bd11c8..b04c6f754b5f 100644 --- a/lldb/source/Interpreter/CommandObject.cpp +++ b/lldb/source/Interpreter/CommandObject.cpp @@ -994,7 +994,7 @@ bool CommandObjectParsed::Execute(const char *args_string, } if (!handled) { for (auto entry : llvm::enumerate(cmd_args.entries())) { - if (entry.Value.ref.front() == '`') { + if (!entry.Value.ref.empty() && entry.Value.ref.front() == '`') { cmd_args.ReplaceArgumentAtIndex( entry.Index, m_interpreter.ProcessEmbeddedScriptCommands(entry.Value.c_str()));