Fix the rest of rdar://8318441 which happens when a raw_fd_ostream
authorChris Lattner <sabre@nondot.org>
Tue, 17 Aug 2010 23:11:56 +0000 (23:11 +0000)
committerChris Lattner <sabre@nondot.org>
Tue, 17 Aug 2010 23:11:56 +0000 (23:11 +0000)
commit93d81b697c054c04d1995af0393f20ce23f520d4
treea39deaca7b769e4681ba1648438ab184eb4be3ce
parent73ebaff79f2a26d76cccd37d176f05f32b09ad2e
Fix the rest of rdar://8318441 which happens when a raw_fd_ostream
(e.g. errs()) fails in close() due to (e.g.) a broken pipe.  As
previously written, the had_error() flag would get set and then
the raw_ostream dtor would report a fatal error.  There is nothing
the client can do about this and we have no way to report the error,
so just eat it.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@111321 91177308-0d34-0410-b5e6-96231b3b80d8
lib/Support/raw_ostream.cpp