forked from OSchip/llvm-project
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:
parent
b6148ed72c
commit
f6a6346d67
|
@ -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();
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue