From 2b9c50776ac99211f6373db4dbd96478ba322d58 Mon Sep 17 00:00:00 2001 From: Nick Lewycky Date: Fri, 29 Jul 2011 18:26:59 +0000 Subject: [PATCH] Don't look at $PWD in GetCurrentDirectory. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@136477 91177308-0d34-0410-b5e6-96231b3b80d8 --- lib/Support/Unix/Path.inc | 3 --- 1 file changed, 3 deletions(-) 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.");