summaryrefslogtreecommitdiff
path: root/lib/Support/PathV2.cpp
diff options
context:
space:
mode:
authorMichael J. Spencer <bigcheesegs@gmail.com>2010-12-07 01:22:31 +0000
committerMichael J. Spencer <bigcheesegs@gmail.com>2010-12-07 01:22:31 +0000
commit1522fce477f3b6b1b5812aa561ad2ff3f51eb968 (patch)
tree7091ae78128def7a19269ea17f9f9632ab220d45 /lib/Support/PathV2.cpp
parent3890e397c3fa6cc11f50ea5e32ca81afa1e653a5 (diff)
downloadllvm-1522fce477f3b6b1b5812aa561ad2ff3f51eb968.tar.gz
llvm-1522fce477f3b6b1b5812aa561ad2ff3f51eb968.tar.bz2
llvm-1522fce477f3b6b1b5812aa561ad2ff3f51eb968.tar.xz
Support/PathV2: Move current_path from path to fs and fix the Unix implementation.
Unix bug spotted by Dan Gohman. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@121090 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Support/PathV2.cpp')
-rw-r--r--lib/Support/PathV2.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/Support/PathV2.cpp b/lib/Support/PathV2.cpp
index 639b323a82..492903e4b5 100644
--- a/lib/Support/PathV2.cpp
+++ b/lib/Support/PathV2.cpp
@@ -437,7 +437,7 @@ error_code make_absolute(SmallVectorImpl<char> &path) {
// All of the following conditions will need the current directory.
SmallString<128> current_dir;
- if (error_code ec = current_path(current_dir)) return ec;
+ if (error_code ec = fs::current_path(current_dir)) return ec;
// Relative path. Prepend the current directory.
if (!rootName && !rootDirectory) {