forked from OSchip/llvm-project
[LLD] Fix include following 45b8a741fb
This commit is contained in:
parent
a196e8092a
commit
ec63dfe368
|
@ -454,6 +454,7 @@ bool CrashRecoveryContext::throwIfCrash(int RetCode) {
|
||||||
::RaiseException(RetCode, 0, 0, NULL);
|
::RaiseException(RetCode, 0, 0, NULL);
|
||||||
#else
|
#else
|
||||||
// On Unix, signals are represented by return codes of 128 or higher.
|
// 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)
|
if (RetCode <= 128)
|
||||||
return false;
|
return false;
|
||||||
llvm::sys::unregisterHandlers();
|
llvm::sys::unregisterHandlers();
|
||||||
|
|
|
@ -20,7 +20,7 @@
|
||||||
#include "llvm/Support/Path.h"
|
#include "llvm/Support/Path.h"
|
||||||
#include "llvm/Support/Program.h"
|
#include "llvm/Support/Program.h"
|
||||||
|
|
||||||
#include <stddef.h> // for _Exit
|
#include <stdlib.h> // for _Exit
|
||||||
|
|
||||||
using namespace llvm;
|
using namespace llvm;
|
||||||
using namespace sys;
|
using namespace sys;
|
||||||
|
|
Loading…
Reference in New Issue