Don't try to generate crash diagnostics if we had an I/O failure. It's very
authorChad Rosier <mcrosier@apple.com>
Wed, 27 Mar 2013 18:30:00 +0000 (18:30 +0000)
committerChad Rosier <mcrosier@apple.com>
Wed, 27 Mar 2013 18:30:00 +0000 (18:30 +0000)
likely the crash diagnostics generation will fail as well.
Part of rdar://13296693

llvm-svn: 178163

llvm/lib/Support/raw_ostream.cpp

index da26a37..a433088 100644 (file)
@@ -517,7 +517,7 @@ raw_fd_ostream::~raw_fd_ostream() {
   // has_error() and clear the error flag with clear_error() before
   // destructing raw_ostream objects which may have errors.
   if (has_error())
-    report_fatal_error("IO failure on output stream.");
+    report_fatal_error("IO failure on output stream.", /*GenCrashDiag=*/false);
 }