[llvm] 8c55de9 - fix tests after my commit 80b3dcc045f8ea6e5e532d8891bbf1305bce89e8

Nuno Lopes via llvm-commits llvm-commits at lists.llvm.org
Mon May 30 11:44:20 PDT 2022


Author: Nuno Lopes
Date: 2022-05-30T19:44:06+01:00
New Revision: 8c55de9ee7f63a26e6edf7bcf4279f64602b3bf1

URL: https://github.com/llvm/llvm-project/commit/8c55de9ee7f63a26e6edf7bcf4279f64602b3bf1
DIFF: https://github.com/llvm/llvm-project/commit/8c55de9ee7f63a26e6edf7bcf4279f64602b3bf1.diff

LOG: fix tests after my commit 80b3dcc045f8ea6e5e532d8891bbf1305bce89e8
 doesn't like exit code 126 I'm afraid

Added: 
    

Modified: 
    llvm/lib/Support/ErrorHandling.cpp

Removed: 
    


################################################################################
diff  --git a/llvm/lib/Support/ErrorHandling.cpp b/llvm/lib/Support/ErrorHandling.cpp
index 3acae3f790a37..b8b3b7424ac6b 100644
--- a/llvm/lib/Support/ErrorHandling.cpp
+++ b/llvm/lib/Support/ErrorHandling.cpp
@@ -122,7 +122,7 @@ void llvm::report_fatal_error(const Twine &Reason, bool GenCrashDiag) {
   if (GenCrashDiag)
     abort();
   else
-    exit(126);
+    exit(1);
 }
 
 void llvm::install_bad_alloc_error_handler(fatal_error_handler_t handler,


        


More information about the llvm-commits mailing list