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 | 9ee5f77141f542c47da2c0e8f22142ac5dfa6090 (patch) | |
| tree | fc18a9d6367f9c9ab46ecba1489f42235ad07ba1 | |
| parent | 10d52011d8fe96278462107867c6c29c02c04b62 (diff) | |
| download | bcm5719-llvm-9ee5f77141f542c47da2c0e8f22142ac5dfa6090.tar.gz bcm5719-llvm-9ee5f77141f542c47da2c0e8f22142ac5dfa6090.zip | |
Don't look at $PWD in GetCurrentDirectory.
llvm-svn: 136477
| -rw-r--r-- | llvm/lib/Support/Unix/Path.inc | 3 |
1 files changed, 0 insertions, 3 deletions
diff --git a/llvm/lib/Support/Unix/Path.inc b/llvm/lib/Support/Unix/Path.inc index a139399cba3..85c7c4022f4 100644 --- a/llvm/lib/Support/Unix/Path.inc +++ b/llvm/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."); |

