summaryrefslogtreecommitdiffstats
path: root/llvm/lib/Support/ErrorHandling.cpp
diff options
context:
space:
mode:
authorChad Rosier <mcrosier@apple.com>2012-11-13 16:42:19 +0000
committerChad Rosier <mcrosier@apple.com>2012-11-13 16:42:19 +0000
commit379574fd20cb9ac83f126f9a6111f202f5120c71 (patch)
tree8c2eb03c6ccd91363f1a704365a740b9bdc2f3f8 /llvm/lib/Support/ErrorHandling.cpp
parentfe4d464f520001dee0c3adad21bd854e2bc49303 (diff)
downloadbcm5719-llvm-379574fd20cb9ac83f126f9a6111f202f5120c71.tar.gz
bcm5719-llvm-379574fd20cb9ac83f126f9a6111f202f5120c71.zip
Revert 167755/167760. We don't want to emit crash diagnostics on command-line syntax errors.
llvm-svn: 167849
Diffstat (limited to 'llvm/lib/Support/ErrorHandling.cpp')
-rw-r--r--llvm/lib/Support/ErrorHandling.cpp5
1 files changed, 1 insertions, 4 deletions
diff --git a/llvm/lib/Support/ErrorHandling.cpp b/llvm/lib/Support/ErrorHandling.cpp
index 3c335a66ae5..e6cc57db824 100644
--- a/llvm/lib/Support/ErrorHandling.cpp
+++ b/llvm/lib/Support/ErrorHandling.cpp
@@ -81,10 +81,7 @@ void llvm::report_fatal_error(const Twine &Reason) {
// files registered with RemoveFileOnSignal.
sys::RunInterruptHandlers();
- // 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);
+ exit(1);
}
void llvm::llvm_unreachable_internal(const char *msg, const char *file,
OpenPOWER on IntegriCloud