From: Chris Lattner Date: Thu, 19 Sep 2002 20:49:25 +0000 (+0000) Subject: Workaround for bug in GCC 3.1.1 iostreams library on sparc. It apprarently X-Git-Url: http://plrg.eecs.uci.edu/git/?a=commitdiff_plain;h=fd479b6fd4fe7ec83421a8b999e6b02d86a9e006;p=oota-llvm.git Workaround for bug in GCC 3.1.1 iostreams library on sparc. It apprarently isn't flushing an ostream when it is deleted. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@3834 91177308-0d34-0410-b5e6-96231b3b80d8 --- diff --git a/include/llvm/Assembly/PrintModulePass.h b/include/llvm/Assembly/PrintModulePass.h index 1dfb75e049d..a86f13cf7fb 100644 --- a/include/llvm/Assembly/PrintModulePass.h +++ b/include/llvm/Assembly/PrintModulePass.h @@ -28,7 +28,7 @@ public: } bool run(Module &M) { - (*Out) << M; + (*Out) << M << std::flush; return false; }