[llvm] a6a6ccf - Fix f5314d15af4f4514103ea12c74cb208538b8bef5 - [Support] On Unix, let the CrashRecoveryContext return the signal code

Alexandre Ganea via llvm-commits llvm-commits at lists.llvm.org
Thu Sep 24 06:07:35 PDT 2020


Author: Alexandre Ganea
Date: 2020-09-24T09:07:22-04:00
New Revision: a6a6ccfc4c8b348d6d534657e16bb7504b9f2888

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

LOG: Fix f5314d15af4f4514103ea12c74cb208538b8bef5 - [Support] On Unix, let the CrashRecoveryContext return the signal code

This was causing bots to fail: http://green.lab.llvm.org/green/job/clang-stage1-RA/14828/consoleFull#6384962949ba4694-19c4-4d7e-bec5-911270d8a58c

Added: 
    

Modified: 
    llvm/unittests/Support/CrashRecoveryTest.cpp

Removed: 
    


################################################################################
diff  --git a/llvm/unittests/Support/CrashRecoveryTest.cpp b/llvm/unittests/Support/CrashRecoveryTest.cpp
index fc65bf6329b3..12f25db270b3 100644
--- a/llvm/unittests/Support/CrashRecoveryTest.cpp
+++ b/llvm/unittests/Support/CrashRecoveryTest.cpp
@@ -7,6 +7,7 @@
 //===----------------------------------------------------------------------===//
 
 #include "llvm/ADT/Triple.h"
+#include "llvm/Config/config.h"
 #include "llvm/Support/CommandLine.h"
 #include "llvm/Support/Compiler.h"
 #include "llvm/Support/CrashRecoveryContext.h"
@@ -23,6 +24,12 @@
 #include <windows.h>
 #endif
 
+#ifdef LLVM_ON_UNIX
+#ifdef HAVE_SIGNAL_H
+#include <signal.h>
+#endif
+#endif
+
 using namespace llvm;
 using namespace llvm::sys;
 


        


More information about the llvm-commits mailing list