Author: asl Date: Mon Dec 3 08:35:57 2007 New Revision: 44534 URL: http://llvm.org/viewvc/llvm-project?rev=44534&view=rev Log: Sorry, typo :)
Modified: llvm/trunk/lib/Bitcode/Writer/BitWriter.cpp Modified: llvm/trunk/lib/Bitcode/Writer/BitWriter.cpp URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/Bitcode/Writer/BitWriter.cpp?rev=44534&r1=44533&r2=44534&view=diff ============================================================================== --- llvm/trunk/lib/Bitcode/Writer/BitWriter.cpp (original) +++ llvm/trunk/lib/Bitcode/Writer/BitWriter.cpp Mon Dec 3 08:35:57 2007 @@ -35,8 +35,10 @@ // libSystem? As is, the user will just get a linker error if they use this on // non-GCC. Some C++ stdlibs even have ofstream::ofstream(int fd). int LLVMWriteBitcodeToFileHandle(LLVMModuleRef M, int FileHandle) { - __gnu_cxx::stdio_filebuf<char> Buffer(FileHandle, std::ios_base::out); - std::ostream OS(&Buffer, std::ios::out | std::ios::trunc | std::ios::binary); + __gnu_cxx::stdio_filebuf<char> Buffer(FileHandle, std::ios_base::out | + std::ios::trunc | + std::ios::binary); + std::ostream OS(&Buffer); if (!OS.fail()) WriteBitcodeToFile(unwrap(M), OS); _______________________________________________ llvm-commits mailing list llvm-commits@cs.uiuc.edu http://lists.cs.uiuc.edu/mailman/listinfo/llvm-commits