aboutsummaryrefslogtreecommitdiff
path: root/llvm/lib/Support/ErrorHandling.cpp
diff options
context:
space:
mode:
authorYuanfang Chen <yuanfang.chen@sony.com>2020-02-11 23:01:35 -0800
committerYuanfang Chen <yuanfang.chen@sony.com>2020-02-13 10:16:06 -0800
commit4ad76852584480b646d1ce360202e18591ea8938 (patch)
tree792a7eb7376a3f02060bb76114e2d9e8afccd759 /llvm/lib/Support/ErrorHandling.cpp
parent17122ec10ab40be43e297c7663f28d83907831e4 (diff)
downloadllvm-4ad76852584480b646d1ce360202e18591ea8938.zip
llvm-4ad76852584480b646d1ce360202e18591ea8938.tar.gz
llvm-4ad76852584480b646d1ce360202e18591ea8938.tar.bz2
Revert "Revert "Reland "[Support] make report_fatal_error `abort` instead of `exit`"""
This reverts commit 80a34ae31125aa46dcad47162ba45b152aed968d with fixes. Previously, since bots turning on EXPENSIVE_CHECKS are essentially turning on MachineVerifierPass by default on X86 and the fact that inline-asm-avx-v-constraint-32bit.ll and inline-asm-avx512vl-v-constraint-32bit.ll are not expected to generate functioning machine code, this would go down to `report_fatal_error` in MachineVerifierPass. Here passing `-verify-machineinstrs=0` to make the intent explicit.
Diffstat (limited to 'llvm/lib/Support/ErrorHandling.cpp')
-rw-r--r--llvm/lib/Support/ErrorHandling.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/llvm/lib/Support/ErrorHandling.cpp b/llvm/lib/Support/ErrorHandling.cpp
index a946302..f70a692 100644
--- a/llvm/lib/Support/ErrorHandling.cpp
+++ b/llvm/lib/Support/ErrorHandling.cpp
@@ -123,7 +123,7 @@ void llvm::report_fatal_error(const Twine &Reason, bool GenCrashDiag) {
// files registered with RemoveFileOnSignal.
sys::RunInterruptHandlers();
- sys::Process::Exit(1);
+ abort();
}
void llvm::install_bad_alloc_error_handler(fatal_error_handler_t handler,