diff options
Diffstat (limited to 'llvm/lib/Support/Unix/Path.inc')
| -rw-r--r-- | llvm/lib/Support/Unix/Path.inc | 11 | 
1 files changed, 5 insertions, 6 deletions
diff --git a/llvm/lib/Support/Unix/Path.inc b/llvm/lib/Support/Unix/Path.inc index b21245c..886ba6b 100644 --- a/llvm/lib/Support/Unix/Path.inc +++ b/llvm/lib/Support/Unix/Path.inc @@ -242,12 +242,11 @@ Path::GetLLVMDefaultConfigDir() {  Path  Path::GetUserHomeDirectory() {    const char* home = getenv("HOME"); -  if (home) { -    Path result; -    if (result.set(home)) -      return result; -  } -  return GetRootDirectory(); +  Path result; +  if (home && result.set(home)) +    return result; +  result.set("/"); +  return result;  }  Path  | 
