summaryrefslogtreecommitdiffstats
path: root/llvm/lib/Support/ErrorHandling.cpp
diff options
context:
space:
mode:
authorChad Rosier <mcrosier@apple.com>2012-11-12 21:32:44 +0000
committerChad Rosier <mcrosier@apple.com>2012-11-12 21:32:44 +0000
commit2b2b38d336b209cd43f7326f7a9f0d168fc21c27 (patch)
treeb36ba7d04eba80d1f6647db6e1655977d527727c /llvm/lib/Support/ErrorHandling.cpp
parentad6e96d59c597aeccbdb1c2b0d749fbe4dee762d (diff)
downloadbcm5719-llvm-2b2b38d336b209cd43f7326f7a9f0d168fc21c27.tar.gz
bcm5719-llvm-2b2b38d336b209cd43f7326f7a9f0d168fc21c27.zip
Revert r167620; this can be implemented using an existing CL option.
llvm-svn: 167755
Diffstat (limited to 'llvm/lib/Support/ErrorHandling.cpp')
-rw-r--r--llvm/lib/Support/ErrorHandling.cpp5
1 files changed, 4 insertions, 1 deletions
diff --git a/llvm/lib/Support/ErrorHandling.cpp b/llvm/lib/Support/ErrorHandling.cpp
index e6cc57db824..3c335a66ae5 100644
--- a/llvm/lib/Support/ErrorHandling.cpp
+++ b/llvm/lib/Support/ErrorHandling.cpp
@@ -81,7 +81,10 @@ void llvm::report_fatal_error(const Twine &Reason) {
// files registered with RemoveFileOnSignal.
sys::RunInterruptHandlers();
- exit(1);
+ // When reporting a fatal error, exit with status 70. For BSD systems this
+ // is defined as an internal software error. This notifies the driver to
+ // report diagnostics information.
+ exit(70);
}
void llvm::llvm_unreachable_internal(const char *msg, const char *file,
OpenPOWER on IntegriCloud