Skip to content

Commit

Permalink
Whoops, the old LLVMWriteBitcodeToFileHandle closed the stream.
Browse files Browse the repository at this point in the history
Luckily this never was released.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@97857 91177308-0d34-0410-b5e6-96231b3b80d8
  • Loading branch information
Erick Tryzelaar committed Mar 6, 2010
1 parent 7606405 commit b3195fb
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/Bitcode/Writer/BitWriter.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit b3195fb

Please sign in to comment.