diff options
author | Nick Lewycky <nicholas@mxc.ca> | 2011-07-29 18:26:59 +0000 |
---|---|---|
committer | Nick Lewycky <nicholas@mxc.ca> | 2011-07-29 18:26:59 +0000 |
commit | 2b9c50776ac99211f6373db4dbd96478ba322d58 (patch) | |
tree | 13b80befe417f57d4223240a30e56ee67f8a80a5 /lib/Support/Unix/Path.inc | |
parent | 5a287483607773f74ac77ac0ce4ca2201d2a8bbd (diff) |
Don't look at $PWD in GetCurrentDirectory.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@136477 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Support/Unix/Path.inc')
-rw-r--r-- | lib/Support/Unix/Path.inc | 3 |
1 files changed, 0 insertions, 3 deletions
diff --git a/lib/Support/Unix/Path.inc b/lib/Support/Unix/Path.inc index a139399cba..85c7c4022f 100644 --- a/lib/Support/Unix/Path.inc +++ b/lib/Support/Unix/Path.inc @@ -251,9 +251,6 @@ Path::GetUserHomeDirectory() { Path Path::GetCurrentDirectory() { - if (char *pwd = getenv("PWD")) - return Path(pwd); - char pathname[MAXPATHLEN]; if (!getcwd(pathname, MAXPATHLEN)) { assert(false && "Could not query current working directory."); |