summaryrefslogtreecommitdiffstats
path: root/llvm/lib/Bitcode
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
commitdc78d16a03bfbab573da26915995c18f172c3555 (patch)
treeae64dd363e20df18be7ad18d17da13ba3db1ab6c /llvm/lib/Bitcode
parentb2e144ddffbc1e4d763352cacf7c760e49950a11 (diff)
downloadbcm5719-llvm-dc78d16a03bfbab573da26915995c18f172c3555.tar.gz
bcm5719-llvm-dc78d16a03bfbab573da26915995c18f172c3555.zip
Whoops, the old LLVMWriteBitcodeToFileHandle closed the stream.
Luckily this never was released. llvm-svn: 97857
Diffstat (limited to 'llvm/lib/Bitcode')
-rw-r--r--llvm/lib/Bitcode/Writer/BitWriter.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/llvm/lib/Bitcode/Writer/BitWriter.cpp b/llvm/lib/Bitcode/Writer/BitWriter.cpp
index d2beaab4686..6119c428895 100644
--- a/llvm/lib/Bitcode/Writer/BitWriter.cpp
+++ b/llvm/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;
OpenPOWER on IntegriCloud