[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:
Jonas Devlieghere 2020-01-29 10:35:34 -08:00
parent 18dbe1b279
commit ce07cdea33
1 changed files with 1 additions and 1 deletions

View File

@ -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));