summaryrefslogtreecommitdiffstats
path: root/lldb/source/Host/windows/Host.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'lldb/source/Host/windows/Host.cpp')
-rw-r--r--lldb/source/Host/windows/Host.cpp5
1 files changed, 3 insertions, 2 deletions
diff --git a/lldb/source/Host/windows/Host.cpp b/lldb/source/Host/windows/Host.cpp
index 1ca2115adf6..b4a50c4a05c 100644
--- a/lldb/source/Host/windows/Host.cpp
+++ b/lldb/source/Host/windows/Host.cpp
@@ -230,8 +230,9 @@ Error Host::ShellExpandArguments(ProcessLaunchInfo &launch_info) {
int status;
std::string output;
- RunShellCommand(expand_command.GetData(), launch_info.GetWorkingDirectory(),
- &status, nullptr, &output, 10);
+ std::string command = expand_command.GetString();
+ RunShellCommand(command.c_str(), launch_info.GetWorkingDirectory(), &status,
+ nullptr, &output, 10);
if (status != 0) {
error.SetErrorStringWithFormat("lldb-argdumper exited with error %d",
OpenPOWER on IntegriCloud