mirror of
https://github.com/RPCS3/llvm.git
synced 2025-02-11 21:38:46 +00:00
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:
parent
90c61c4a74
commit
fc298c76c7
@ -81,10 +81,7 @@ void llvm::report_fatal_error(const Twine &Reason) {
|
|||||||
// files registered with RemoveFileOnSignal.
|
// files registered with RemoveFileOnSignal.
|
||||||
sys::RunInterruptHandlers();
|
sys::RunInterruptHandlers();
|
||||||
|
|
||||||
// When reporting a fatal error, exit with status 70. For BSD systems this
|
exit(1);
|
||||||
// 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,
|
void llvm::llvm_unreachable_internal(const char *msg, const char *file,
|
||||||
|
@ -1,6 +1,6 @@
|
|||||||
; RUN: sh -c 'opt --reject-this-option 2>&-; echo $?; opt -o /dev/null /dev/null 2>&-; echo $?;' \
|
; RUN: sh -c 'opt --reject-this-option 2>&-; echo $?; opt -o /dev/null /dev/null 2>&-; echo $?;' \
|
||||||
; RUN: | FileCheck %s
|
; RUN: | FileCheck %s
|
||||||
; CHECK: {{^70$}}
|
; CHECK: {{^1$}}
|
||||||
; CHECK: {{^0$}}
|
; CHECK: {{^0$}}
|
||||||
; XFAIL: vg_leak
|
; XFAIL: vg_leak
|
||||||
; REQUIRES: shell
|
; REQUIRES: shell
|
||||||
|
Loading…
x
Reference in New Issue
Block a user