diff --git a/lib/Support/Unix/Path.inc b/lib/Support/Unix/Path.inc index a139399cba3..85c7c4022f4 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.");