aboutsummaryrefslogtreecommitdiff
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
commitfc298c76c7e5f569ab4310b237784609458c2ea8 (patch)
treec360e97b2fc0eee044cf636827696c462c8433d3
parent90c61c4a7497d24e9e29fc64e311e45b0419e13d (diff)
Revert 167755/167760. We don't want to emit crash diagnostics on command-line syntax errors.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@167849 91177308-0d34-0410-b5e6-96231b3b80d8
-rw-r--r--lib/Support/ErrorHandling.cpp5
-rw-r--r--test/Other/close-stderr.ll2
2 files changed, 2 insertions, 5 deletions
diff --git a/lib/Support/ErrorHandling.cpp b/lib/Support/ErrorHandling.cpp
index 3c335a66ae..e6cc57db82 100644
--- a/lib/Support/ErrorHandling.cpp
+++ b/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,
diff --git a/test/Other/close-stderr.ll b/test/Other/close-stderr.ll
index e0641bfd65..e48f44fb40 100644
--- a/test/Other/close-stderr.ll
+++ b/test/Other/close-stderr.ll
@@ -1,6 +1,6 @@
; RUN: sh -c 'opt --reject-this-option 2>&-; echo $?; opt -o /dev/null /dev/null 2>&-; echo $?;' \
; RUN: | FileCheck %s
-; CHECK: {{^70$}}
+; CHECK: {{^1$}}
; CHECK: {{^0$}}
; XFAIL: vg_leak
; REQUIRES: shell