diff options
author | Chad Rosier <mcrosier@apple.com> | 2012-11-12 21:32:44 +0000 |
---|---|---|
committer | Chad Rosier <mcrosier@apple.com> | 2012-11-12 21:32:44 +0000 |
commit | f4e3309e849dd0b89a39363c7f2fac337c6db81e (patch) | |
tree | b1d7057b1f4c82f3cf57785c3afd7a7fc803de93 | |
parent | a7d2d564d918a9cb9105d3b2b4176b45af36a20e (diff) |
Revert r167620; this can be implemented using an existing CL option.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@167755 91177308-0d34-0410-b5e6-96231b3b80d8
-rw-r--r-- | lib/Support/ErrorHandling.cpp | 5 |
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, |