aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorBenjamin Kramer <benny.kra@googlemail.com>2009-08-23 08:57:52 +0000
committerBenjamin Kramer <benny.kra@googlemail.com>2009-08-23 08:57:52 +0000
commitae60324d465496f18cdd9b5f733d305ebefb0d1e (patch)
tree28466ba0513317f9bd31d10605133b1c87a54e82
parent43ed267db3512823a9698f810be4e64bee227270 (diff)
downloadexternal_llvm-ae60324d465496f18cdd9b5f733d305ebefb0d1e.zip
external_llvm-ae60324d465496f18cdd9b5f733d305ebefb0d1e.tar.gz
external_llvm-ae60324d465496f18cdd9b5f733d305ebefb0d1e.tar.bz2
Fix windows build.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@79845 91177308-0d34-0410-b5e6-96231b3b80d8
-rw-r--r--lib/Support/raw_ostream.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/Support/raw_ostream.cpp b/lib/Support/raw_ostream.cpp
index 2e15111..2181cce 100644
--- a/lib/Support/raw_ostream.cpp
+++ b/lib/Support/raw_ostream.cpp
@@ -343,7 +343,7 @@ raw_fd_ostream::raw_fd_ostream(const char *Filename, std::string &ErrorInfo,
int OpenFlags = O_WRONLY|O_CREAT;
#ifdef O_BINARY
- if (Binary)
+ if (Flags & F_Binary)
OpenFlags |= O_BINARY;
#endif