[llvm-commits] [llvm] r136477 - /llvm/trunk/lib/Support/Unix/Path.inc
Nick Lewycky
nicholas at mxc.ca
Fri Jul 29 11:26:59 PDT 2011
Author: nicholas
Date: Fri Jul 29 13:26:59 2011
New Revision: 136477
URL: http://llvm.org/viewvc/llvm-project?rev=136477&view=rev
Log:
Don't look at $PWD in GetCurrentDirectory.
Modified:
llvm/trunk/lib/Support/Unix/Path.inc
Modified: llvm/trunk/lib/Support/Unix/Path.inc
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/Support/Unix/Path.inc?rev=136477&r1=136476&r2=136477&view=diff
==============================================================================
--- llvm/trunk/lib/Support/Unix/Path.inc (original)
+++ llvm/trunk/lib/Support/Unix/Path.inc Fri Jul 29 13:26:59 2011
@@ -251,9 +251,6 @@
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.");
More information about the llvm-commits
mailing list