[cfe-commits] r156592 - /cfe/trunk/lib/Frontend/CompilerInstance.cpp

Eric Christopher echristo at apple.com
Thu May 10 17:10:08 PDT 2012


Author: echristo
Date: Thu May 10 19:10:07 2012
New Revision: 156592

URL: http://llvm.org/viewvc/llvm-project?rev=156592&view=rev
Log:
For final output files create them with mode 0664 to match other
compilers and expected defaults.

Part of rdar://11325849

Modified:
    cfe/trunk/lib/Frontend/CompilerInstance.cpp

Modified: cfe/trunk/lib/Frontend/CompilerInstance.cpp
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/lib/Frontend/CompilerInstance.cpp?rev=156592&r1=156591&r2=156592&view=diff
==============================================================================
--- cfe/trunk/lib/Frontend/CompilerInstance.cpp (original)
+++ cfe/trunk/lib/Frontend/CompilerInstance.cpp Thu May 10 19:10:07 2012
@@ -560,7 +560,8 @@
       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();
       }





More information about the cfe-commits mailing list