mirror of
https://github.com/RPCSX/llvm.git
synced 2024-12-13 23:18:51 +00:00
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
This commit is contained in:
parent
760640599e
commit
b3195fbc2e
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user