aboutsummaryrefslogtreecommitdiffstats
path: root/lib/Bitcode/Writer
diff options
context:
space:
mode:
authorErick Tryzelaar <idadesub@users.sourceforge.net>2010-03-06 00:30:01 +0000
committerErick Tryzelaar <idadesub@users.sourceforge.net>2010-03-06 00:30:01 +0000
commitb3195fbc2e19755c581eaa3aa52bfc1640c8495a (patch)
treea098f29527b9bb077885efb2b8c60d6d6febe75c /lib/Bitcode/Writer
parent760640599eb6ac4c38cf2f9053726be93b07e151 (diff)
downloadexternal_llvm-b3195fbc2e19755c581eaa3aa52bfc1640c8495a.zip
external_llvm-b3195fbc2e19755c581eaa3aa52bfc1640c8495a.tar.gz
external_llvm-b3195fbc2e19755c581eaa3aa52bfc1640c8495a.tar.bz2
Whoops, the old LLVMWriteBitcodeToFileHandle closed the stream.
Luckily this never was released. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@97857 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Bitcode/Writer')
-rw-r--r--lib/Bitcode/Writer/BitWriter.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/Bitcode/Writer/BitWriter.cpp b/lib/Bitcode/Writer/BitWriter.cpp
index d2beaab..6119c42 100644
--- a/lib/Bitcode/Writer/BitWriter.cpp
+++ b/lib/Bitcode/Writer/BitWriter.cpp
@@ -28,7 +28,7 @@ int LLVMWriteBitcodeToFile(LLVMModuleRef M, const char *Path) {
}
int LLVMWriteBitcodeToFileHandle(LLVMModuleRef M, int FileHandle) {
- raw_fd_ostream OS(FileHandle, false);
+ raw_fd_ostream OS(FileHandle, true);
WriteBitcodeToFile(unwrap(M), OS);
return 0;