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
This commit is contained in:
Rafael Espindola
2013-06-26 17:28:04 +00:00
parent e26fa2dd73
commit 97c2a0a110
3 changed files with 8 additions and 4 deletions

View File

@@ -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;