[lldb] Fix macOS build by replacing nullptr with FileSpec()

Before we had a implicit conversion from nullptr to FileSpec
which was thankfully removed.
This commit is contained in:
Raphael Isemann 2019-12-04 14:36:14 +01:00
parent cd04e8349b
commit 5e71356393
2 changed files with 2 additions and 2 deletions

View File

@ -1130,7 +1130,7 @@ static Status LaunchProcessPosixSpawn(const char *exe_path,
// --arch <ARCH> as part of the shell invocation
// to do that job on OSX.
if (launch_info.GetShell() == nullptr) {
if (launch_info.GetShell() == FileSpec()) {
// We don't need to do this for ARM, and we really shouldn't now that we
// have multiple CPU subtypes and no posix_spawnattr call that allows us
// to set which CPU subtype to launch...

View File

@ -595,7 +595,7 @@ bool Symbols::DownloadObjectAndSymbolFile(ModuleSpec &module_spec,
}
Status error = Host::RunShellCommand(
command.GetData(),
NULL, // current working directory
FileSpec(), // current working directory
&exit_status, // Exit status
&signo, // Signal int *
&command_output, // Command output