Whoops, the old LLVMWriteBitcodeToFileHandle closed the stream.

Luckily this never was released.

llvm-svn: 97857
This commit is contained in:
Erick Tryzelaar
2010-03-06 00:30:01 +00:00
parent 7c33f3d1f3
commit 6e35683720
+1 -1
View File
@@ -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;