Fix FreeBSD build.

llvm-svn: 297120
This commit is contained in:
Zachary Turner 2017-03-07 04:58:53 +00:00
parent 3a6b091c23
commit b3c6541c2c
1 changed files with 3 additions and 2 deletions

View File

@ -362,8 +362,9 @@ Error ProcessFreeBSD::DoLaunch(Module *module, ProcessLaunchInfo &launch_info) {
assert(m_monitor == NULL); assert(m_monitor == NULL);
FileSpec working_dir = launch_info.GetWorkingDirectory(); FileSpec working_dir = launch_info.GetWorkingDirectory();
if (working_dir && namespace fs = llvm::sys::fs;
(!working_dir.ResolvePath() || !llvm::sys::fs::is_directory(working_dir.GetPath())) { if (working_dir && (!working_dir.ResolvePath() ||
!fs::is_directory(working_dir.GetPath()))) {
error.SetErrorStringWithFormat("No such file or directory: %s", error.SetErrorStringWithFormat("No such file or directory: %s",
working_dir.GetCString()); working_dir.GetCString());
return error; return error;