[llvm] r178163 - Don't try to generate crash diagnostics if we had an I/O failure. It's very
Chad Rosier
mcrosier at apple.com
Wed Mar 27 11:30:00 PDT 2013
Author: mcrosier
Date: Wed Mar 27 13:30:00 2013
New Revision: 178163
URL: http://llvm.org/viewvc/llvm-project?rev=178163&view=rev
Log:
Don't try to generate crash diagnostics if we had an I/O failure. It's very
likely the crash diagnostics generation will fail as well.
Part of rdar://13296693
Modified:
llvm/trunk/lib/Support/raw_ostream.cpp
Modified: llvm/trunk/lib/Support/raw_ostream.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/Support/raw_ostream.cpp?rev=178163&r1=178162&r2=178163&view=diff
==============================================================================
--- llvm/trunk/lib/Support/raw_ostream.cpp (original)
+++ llvm/trunk/lib/Support/raw_ostream.cpp Wed Mar 27 13:30:00 2013
@@ -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);
}
More information about the llvm-commits
mailing list