Revert 167755/167760. We don't want to emit crash diagnostics on command-line syntax...
authorChad Rosier <mcrosier@apple.com>
Tue, 13 Nov 2012 16:42:19 +0000 (16:42 +0000)
committerChad Rosier <mcrosier@apple.com>
Tue, 13 Nov 2012 16:42:19 +0000 (16:42 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@167849 91177308-0d34-0410-b5e6-96231b3b80d8

lib/Support/ErrorHandling.cpp
test/Other/close-stderr.ll

index 3c335a66ae5b717507d6e03cbb302d16df31f590..e6cc57db8243506c7a18067e6109dd4c7485d2fd 100644 (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,
index e0641bfd6545c047060ecc0e8dfcdd7e7bad3b73..e48f44fb405425ba0559657afced485473d65939 100644 (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