forked from OSchip/llvm-project
Flush the file after writing bitcode so that clients who don't close their
ofstreams will be ok. llvm-svn: 36878
This commit is contained in:
parent
9b4a428978
commit
44f8ad1d40
|
@ -1201,4 +1201,7 @@ void llvm::WriteBitcodeToFile(const Module *M, std::ostream &Out) {
|
|||
|
||||
// Write the generated bitstream to "Out".
|
||||
Out.write((char*)&Buffer.front(), Buffer.size());
|
||||
|
||||
// Make sure it hits disk now.
|
||||
Out.flush();
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue