projects
/
oota-llvm.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
5a28748
)
Don't look at $PWD in GetCurrentDirectory.
author
Nick Lewycky
<nicholas@mxc.ca>
Fri, 29 Jul 2011 18:26:59 +0000
(18:26 +0000)
committer
Nick 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
patch
|
blob
|
history
diff --git
a/lib/Support/Unix/Path.inc
b/lib/Support/Unix/Path.inc
index a139399cba3b7040f9cdc529120497fe341e9b0f..85c7c4022f487b8b47b067cbc26a72d4fbe21466 100644
(file)
--- 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.");