diff options
author | Eric Christopher <echristo@apple.com> | 2012-05-11 00:10:07 +0000 |
---|---|---|
committer | Eric Christopher <echristo@apple.com> | 2012-05-11 00:10:07 +0000 |
commit | f6a6346d67b10d2e1f8fe03986c5180dada1e782 (patch) | |
tree | ce9402142ccceaa962a605b4747485db2ddef16b /clang/lib/Frontend/CompilerInstance.cpp | |
parent | b6148ed72cfdc6a2acf584631472cd1257ed1bb6 (diff) | |
download | llvm-f6a6346d67b10d2e1f8fe03986c5180dada1e782.zip llvm-f6a6346d67b10d2e1f8fe03986c5180dada1e782.tar.gz llvm-f6a6346d67b10d2e1f8fe03986c5180dada1e782.tar.bz2 |
For final output files create them with mode 0664 to match other
compilers and expected defaults.
Part of rdar://11325849
llvm-svn: 156592
Diffstat (limited to 'clang/lib/Frontend/CompilerInstance.cpp')
-rw-r--r-- | clang/lib/Frontend/CompilerInstance.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/clang/lib/Frontend/CompilerInstance.cpp b/clang/lib/Frontend/CompilerInstance.cpp index 6f36672..c5b6a8f 100644 --- a/clang/lib/Frontend/CompilerInstance.cpp +++ b/clang/lib/Frontend/CompilerInstance.cpp @@ -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(); } |