summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--llvm/lib/Support/Unix/Path.inc3
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.");
OpenPOWER on IntegriCloud