]> granicus.if.org Git - clang/commitdiff
For final output files create them with mode 0664 to match other
authorEric Christopher <echristo@apple.com>
Fri, 11 May 2012 00:10:07 +0000 (00:10 +0000)
committerEric Christopher <echristo@apple.com>
Fri, 11 May 2012 00:10:07 +0000 (00:10 +0000)
compilers and expected defaults.

Part of rdar://11325849

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@156592 91177308-0d34-0410-b5e6-96231b3b80d8

lib/Frontend/CompilerInstance.cpp

index 6f366725d99a8cd7f95ff7dbbdea1bf47254d0de..c5b6a8f79c90eb44a2dd0f02f332ecc8087c9192 100644 (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();
       }