[llvm] ec63dfe - [LLD] Fix include following 45b8a741fbbf271e0fb71294cb7cdce3ad4b9bf3

Alexandre Ganea via llvm-commits llvm-commits at lists.llvm.org
Thu Nov 12 05:32:30 PST 2020


Author: Alexandre Ganea
Date: 2020-11-12T08:32:16-05:00
New Revision: ec63dfe368f729b218630b95d29ff65713acd3d4

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

LOG: [LLD] Fix include following 45b8a741fbbf271e0fb71294cb7cdce3ad4b9bf3

Added: 
    

Modified: 
    llvm/lib/Support/CrashRecoveryContext.cpp
    llvm/lib/Support/Process.cpp

Removed: 
    


################################################################################
diff  --git a/llvm/lib/Support/CrashRecoveryContext.cpp b/llvm/lib/Support/CrashRecoveryContext.cpp
index 77f00189274f..3d3ca7f567c7 100644
--- a/llvm/lib/Support/CrashRecoveryContext.cpp
+++ b/llvm/lib/Support/CrashRecoveryContext.cpp
@@ -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();

diff  --git a/llvm/lib/Support/Process.cpp b/llvm/lib/Support/Process.cpp
index 8626117f2a0b..e0814444876c 100644
--- a/llvm/lib/Support/Process.cpp
+++ b/llvm/lib/Support/Process.cpp
@@ -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;


        


More information about the llvm-commits mailing list