For final output files create them with mode 0664 to match other

compilers and expected defaults.

Part of rdar://11325849

llvm-svn: 156592
This commit is contained in:
Eric Christopher 2012-05-11 00:10:07 +00:00
parent b6148ed72c
commit f6a6346d67
1 changed files with 2 additions and 1 deletions

View File

@ -560,7 +560,8 @@ CompilerInstance::createOutputFile(StringRef OutputPath,
TempPath += "-%%%%%%%%";
int fd;
if (llvm::sys::fs::unique_file(TempPath.str(), fd, TempPath,
/*makeAbsolute=*/false) == llvm::errc::success) {
/*makeAbsolute=*/false, 0664)
== llvm::errc::success) {
OS.reset(new llvm::raw_fd_ostream(fd, /*shouldClose=*/true));
OSFile = TempFile = TempPath.str();
}