[LLD] Fix include following 45b8a741fbbf271e0fb71294cb7cdce3ad4b9bf3
authorAlexandre Ganea <alexandre.ganea@ubisoft.com>
Thu, 12 Nov 2020 13:31:57 +0000 (08:31 -0500)
committerAlexandre Ganea <alexandre.ganea@ubisoft.com>
Thu, 12 Nov 2020 13:32:16 +0000 (08:32 -0500)
llvm/lib/Support/CrashRecoveryContext.cpp
llvm/lib/Support/Process.cpp

index 77f0018..3d3ca7f 100644 (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();
index 8626117..e081444 100644 (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;