forked from OSchip/llvm-project
[lldb/Host] Fix implicit StringRef to std::string conversion
lldb\source\Host\windows\Host.cpp(228): error C2440: 'initializing': cannot convert from 'llvm::StringRef' to 'std::basic_string<char,std::char_traits<char>,std::allocator<char>>'
This commit is contained in:
parent
18dbe1b279
commit
ce07cdea33
|
@ -225,7 +225,7 @@ Status Host::ShellExpandArguments(ProcessLaunchInfo &launch_info) {
|
|||
|
||||
int status;
|
||||
std::string output;
|
||||
std::string command = expand_command.GetString();
|
||||
std::string command = expand_command.GetString().str();
|
||||
Status e =
|
||||
RunShellCommand(command.c_str(), launch_info.GetWorkingDirectory(),
|
||||
&status, nullptr, &output, std::chrono::seconds(10));
|
||||
|
|
Loading…
Reference in New Issue