1
0
mirror of https://github.com/RPCS3/llvm-mirror.git synced 2024-11-22 18:54:02 +01:00

[LLD] Fix include following 45b8a741fbbf271e0fb71294cb7cdce3ad4b9bf3

This commit is contained in:
Alexandre Ganea 2020-11-12 08:31:57 -05:00
parent 733e59acce
commit 59a806e288
2 changed files with 2 additions and 1 deletions

View File

@ -454,6 +454,7 @@ bool CrashRecoveryContext::throwIfCrash(int RetCode) {
::RaiseException(RetCode, 0, 0, NULL);
#else
// On Unix, signals are represented by return codes of 128 or higher.
// Exit code 128 is a reserved value and should not be raised as a signal.
if (RetCode <= 128)
return false;
llvm::sys::unregisterHandlers();

View File

@ -20,7 +20,7 @@
#include "llvm/Support/Path.h"
#include "llvm/Support/Program.h"
#include <stddef.h> // for _Exit
#include <stdlib.h> // for _Exit
using namespace llvm;
using namespace sys;