From 28e4942b2c3b8961b91b362b4b76b9ca0f735cc2 Mon Sep 17 00:00:00 2001 From: Pavel Labath Date: Thu, 28 Nov 2019 17:02:07 +0100 Subject: [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. --- lldb/source/Plugins/Platform/MacOSX/PlatformDarwin.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'lldb/source/Plugins/Platform/MacOSX/PlatformDarwin.cpp') 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 -- cgit v1.2.3