summaryrefslogtreecommitdiffstats
path: root/llvm/lib/Support/raw_ostream.cpp
diff options
context:
space:
mode:
authorDan Gohman <gohman@apple.com>2009-07-15 16:39:40 +0000
committerDan Gohman <gohman@apple.com>2009-07-15 16:39:40 +0000
commit33fb640835a11d258b3f43a9ba7843de78c69238 (patch)
tree31880f8406e061ea1d6cc650232da82f3fca548a /llvm/lib/Support/raw_ostream.cpp
parentd8db3760716c395f3211ad6b2e37dbb279809378 (diff)
downloadbcm5719-llvm-33fb640835a11d258b3f43a9ba7843de78c69238.tar.gz
bcm5719-llvm-33fb640835a11d258b3f43a9ba7843de78c69238.zip
Use 0664 instead of 0644 for the default open mode. This is
consistent with common std::ostream implmentations, and it gives the user the option of using the umask group write bit. llvm-svn: 75792
Diffstat (limited to 'llvm/lib/Support/raw_ostream.cpp')
-rw-r--r--llvm/lib/Support/raw_ostream.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/llvm/lib/Support/raw_ostream.cpp b/llvm/lib/Support/raw_ostream.cpp
index ef725018ee2..3e1a8a9765c 100644
--- a/llvm/lib/Support/raw_ostream.cpp
+++ b/llvm/lib/Support/raw_ostream.cpp
@@ -266,7 +266,7 @@ raw_fd_ostream::raw_fd_ostream(const char *Filename, bool Binary,
if (Binary)
Flags |= O_BINARY;
#endif
- FD = open(Filename, Flags, 0644);
+ FD = open(Filename, Flags, 0664);
if (FD < 0) {
ErrorInfo = "Error opening output file '" + std::string(Filename) + "'";
ShouldClose = false;
OpenPOWER on IntegriCloud