[Lldb-commits] [lldb] ce07cde - [lldb/Host] Fix implicit StringRef to std::string conversion
Jonas Devlieghere via lldb-commits
lldb-commits at lists.llvm.org
Wed Jan 29 10:36:10 PST 2020
Author: Jonas Devlieghere
Date: 2020-01-29T10:36:04-08:00
New Revision: ce07cdea336619c308c3130e936944c67774549d
URL: https://github.com/llvm/llvm-project/commit/ce07cdea336619c308c3130e936944c67774549d
DIFF: https://github.com/llvm/llvm-project/commit/ce07cdea336619c308c3130e936944c67774549d.diff
LOG: [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>>'
Added:
Modified:
lldb/source/Host/windows/Host.cpp
Removed:
################################################################################
diff --git a/lldb/source/Host/windows/Host.cpp b/lldb/source/Host/windows/Host.cpp
index 88245675b373..599d94802812 100644
--- a/lldb/source/Host/windows/Host.cpp
+++ b/lldb/source/Host/windows/Host.cpp
@@ -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));
More information about the lldb-commits
mailing list