summaryrefslogtreecommitdiffstats
path: root/llvm/lib/Support/Path.cpp
diff options
context:
space:
mode:
authorRafael Espindola <rafael.espindola@gmail.com>2013-06-28 01:05:47 +0000
committerRafael Espindola <rafael.espindola@gmail.com>2013-06-28 01:05:47 +0000
commit1842482359c1c578be86cdfa3e12149247c551e8 (patch)
treec014858f1acf41700a3d95355659d6ac17849511 /llvm/lib/Support/Path.cpp
parent12ecb331afd2764939f4d65e267979d823ff988e (diff)
downloadbcm5719-llvm-1842482359c1c578be86cdfa3e12149247c551e8.tar.gz
bcm5719-llvm-1842482359c1c578be86cdfa3e12149247c551e8.zip
Don't ask for a mode when we are not keeping the file.
llvm-svn: 185123
Diffstat (limited to 'llvm/lib/Support/Path.cpp')
-rw-r--r--llvm/lib/Support/Path.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/llvm/lib/Support/Path.cpp b/llvm/lib/Support/Path.cpp
index a631c760fd7..1f4f44acb08 100644
--- a/llvm/lib/Support/Path.cpp
+++ b/llvm/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;
OpenPOWER on IntegriCloud