diff options
| author | Michael J. Spencer <bigcheesegs@gmail.com> | 2010-12-07 01:22:31 +0000 |
|---|---|---|
| committer | Michael J. Spencer <bigcheesegs@gmail.com> | 2010-12-07 01:22:31 +0000 |
| commit | 20daa28344d24e9e6f72140c7eca220dfe56b7cd (patch) | |
| tree | 2d017abf51b8f6c24d4a53fafeef159334308ed1 /llvm/lib/Support/PathV2.cpp | |
| parent | 166f25d3218af1656cb597cb5965d33df046c49c (diff) | |
| download | llvm-20daa28344d24e9e6f72140c7eca220dfe56b7cd.zip llvm-20daa28344d24e9e6f72140c7eca220dfe56b7cd.tar.gz llvm-20daa28344d24e9e6f72140c7eca220dfe56b7cd.tar.bz2 | |
Support/PathV2: Move current_path from path to fs and fix the Unix implementation.
Unix bug spotted by Dan Gohman.
llvm-svn: 121090
Diffstat (limited to 'llvm/lib/Support/PathV2.cpp')
| -rw-r--r-- | llvm/lib/Support/PathV2.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/llvm/lib/Support/PathV2.cpp b/llvm/lib/Support/PathV2.cpp index 639b323..492903e 100644 --- a/llvm/lib/Support/PathV2.cpp +++ b/llvm/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) { |
