summaryrefslogtreecommitdiff
path: root/lib/Support/ErrorHandling.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'lib/Support/ErrorHandling.cpp')
-rw-r--r--lib/Support/ErrorHandling.cpp5
1 files changed, 4 insertions, 1 deletions
diff --git a/lib/Support/ErrorHandling.cpp b/lib/Support/ErrorHandling.cpp
index e6cc57db82..3c335a66ae 100644
--- a/lib/Support/ErrorHandling.cpp
+++ b/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,