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:02:53 -0800
commitbb51d243308dbcc9a8c73180ae7b9e47b98e68fb (patch)
tree768549edace7de7de1f3786d27fccca5bf192fd3 /llvm/lib/Support/ErrorHandling.cpp
parent7202d1c2f6c83e989979bb76a61cbe1d0c859420 (diff)
downloadllvm-bb51d243308dbcc9a8c73180ae7b9e47b98e68fb.zip
llvm-bb51d243308dbcc9a8c73180ae7b9e47b98e68fb.tar.gz
llvm-bb51d243308dbcc9a8c73180ae7b9e47b98e68fb.tar.bz2
Revert "Revert "Reland "[Support] make report_fatal_error `abort` instead of `exit`"""
This reverts commit 80a34ae31125aa46dcad47162ba45b152aed968d with fixes. On bots llvm-clang-x86_64-expensive-checks-ubuntu and llvm-clang-x86_64-expensive-checks-debian only, llc returns 0 for these two tests unexpectedly. I tweaked the RUN line a little bit in the hope that LIT is the culprit since this change is not in the codepath these tests are testing. llvm\test\CodeGen\X86\inline-asm-avx-v-constraint-32bit.ll llvm\test\CodeGen\X86\inline-asm-avx512vl-v-constraint-32bit.ll
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,