diff options
author | Rafael Espindola <rafael.espindola@gmail.com> | 2013-06-28 01:05:47 +0000 |
---|---|---|
committer | Rafael Espindola <rafael.espindola@gmail.com> | 2013-06-28 01:05:47 +0000 |
commit | ae19c89e1da816adbd6c7ffc28f679dabec83573 (patch) | |
tree | db07c844b7a81190797409695a808dd3a05936c8 /lib/Support/Path.cpp | |
parent | 57a7da8b23050f8c78ab7d3a0f44f214183897a0 (diff) | |
download | llvm-ae19c89e1da816adbd6c7ffc28f679dabec83573.tar.gz llvm-ae19c89e1da816adbd6c7ffc28f679dabec83573.tar.bz2 llvm-ae19c89e1da816adbd6c7ffc28f679dabec83573.tar.xz |
Don't ask for a mode when we are not keeping the file.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@185123 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Support/Path.cpp')
-rw-r--r-- | lib/Support/Path.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/Support/Path.cpp b/lib/Support/Path.cpp index a631c760fd..1f4f44acb0 100644 --- a/lib/Support/Path.cpp +++ b/lib/Support/Path.cpp @@ -626,12 +626,12 @@ bool is_relative(const Twine &path) { namespace fs { error_code unique_file(const Twine &Model, SmallVectorImpl<char> &ResultPath, - bool MakeAbsolute, unsigned Mode) { + bool MakeAbsolute) { // FIXME: This is really inefficient. unique_path creates a path an tries to // open it. We should factor the code so that we just don't create/open the // file when we don't need it. int FD; - error_code Ret = unique_file(Model, FD, ResultPath, MakeAbsolute, Mode); + error_code Ret = unique_file(Model, FD, ResultPath, MakeAbsolute, all_read); if (Ret) return Ret; |