Don't look at $PWD in GetCurrentDirectory.
authorNick Lewycky <nicholas@mxc.ca>
Fri, 29 Jul 2011 18:26:59 +0000 (18:26 +0000)
committerNick Lewycky <nicholas@mxc.ca>
Fri, 29 Jul 2011 18:26:59 +0000 (18:26 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@136477 91177308-0d34-0410-b5e6-96231b3b80d8

lib/Support/Unix/Path.inc

index a139399cba3b7040f9cdc529120497fe341e9b0f..85c7c4022f487b8b47b067cbc26a72d4fbe21466 100644 (file)
@@ -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.");