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
This commit is contained in:
Chad Rosier 2012-11-13 16:42:19 +00:00
parent 90c61c4a74
commit fc298c76c7
2 changed files with 2 additions and 5 deletions

View File

@ -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,

View File

@ -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