diff options
author | Rafael Espindola <rafael.espindola@gmail.com> | 2013-06-26 17:28:04 +0000 |
---|---|---|
committer | Rafael Espindola <rafael.espindola@gmail.com> | 2013-06-26 17:28:04 +0000 |
commit | 97c2a0a1100fecb3c2dcd4d582eeaa8fe2ffb335 (patch) | |
tree | 72ad56f6a78d29c8ca25a5d53fa684953a1dd68d /tools | |
parent | e26fa2dd73c035726331246e1c397617f9634f12 (diff) | |
download | external_llvm-97c2a0a1100fecb3c2dcd4d582eeaa8fe2ffb335.zip external_llvm-97c2a0a1100fecb3c2dcd4d582eeaa8fe2ffb335.tar.gz external_llvm-97c2a0a1100fecb3c2dcd4d582eeaa8fe2ffb335.tar.bz2 |
Use enums instead of raw octal values.
Patch by 罗勇刚(Yonggang Luo).
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@184971 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'tools')
-rw-r--r-- | tools/llvm-ar/ArchiveWriter.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/tools/llvm-ar/ArchiveWriter.cpp b/tools/llvm-ar/ArchiveWriter.cpp index 8f010ad..7dad7e0 100644 --- a/tools/llvm-ar/ArchiveWriter.cpp +++ b/tools/llvm-ar/ArchiveWriter.cpp @@ -268,7 +268,7 @@ bool Archive::writeToDisk(bool TruncateNames, std::string *ErrMsg) { int TmpArchiveFD; SmallString<128> TmpArchive; error_code EC = sys::fs::unique_file("temp-archive-%%%%%%%.a", TmpArchiveFD, - TmpArchive, true, 0666); + TmpArchive, true, sys::fs::all_read | sys::fs::all_write); if (EC) return true; |