summaryrefslogtreecommitdiffstats
path: root/lldb/source/Plugins/Platform/MacOSX/PlatformDarwin.cpp
diff options
context:
space:
mode:
authorPavel Labath <pavel@labath.sk>2019-11-28 17:02:07 +0100
committerPavel Labath <pavel@labath.sk>2019-12-04 10:49:25 +0100
commit28e4942b2c3b8961b91b362b4b76b9ca0f735cc2 (patch)
tree3e20ed9cbdfb907f0d0d8ef099fc149175167fe0 /lldb/source/Plugins/Platform/MacOSX/PlatformDarwin.cpp
parent16d20130444c9601ad276a8e82f79b2ac204c6f6 (diff)
downloadbcm5719-llvm-28e4942b2c3b8961b91b362b4b76b9ca0f735cc2.tar.gz
bcm5719-llvm-28e4942b2c3b8961b91b362b4b76b9ca0f735cc2.zip
[lldb] Remove FileSpec(FileSpec*) constructor
This constructor was the cause of some pretty weird behavior. Remove it, and update all code to properly dereference the argument instead.
Diffstat (limited to 'lldb/source/Plugins/Platform/MacOSX/PlatformDarwin.cpp')
-rw-r--r--lldb/source/Plugins/Platform/MacOSX/PlatformDarwin.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/lldb/source/Plugins/Platform/MacOSX/PlatformDarwin.cpp b/lldb/source/Plugins/Platform/MacOSX/PlatformDarwin.cpp
index 6a3e6b4cade..ae9f20db43c 100644
--- a/lldb/source/Plugins/Platform/MacOSX/PlatformDarwin.cpp
+++ b/lldb/source/Plugins/Platform/MacOSX/PlatformDarwin.cpp
@@ -1106,7 +1106,7 @@ static FileSpec GetXcodeSelectPath() {
std::string command_output;
Status status =
Host::RunShellCommand("/usr/bin/xcode-select --print-path",
- nullptr, // current working directory
+ FileSpec(), // current working directory
&exit_status, &signo, &command_output,
std::chrono::seconds(2), // short timeout
false); // don't run in a shell
OpenPOWER on IntegriCloud