aboutsummaryrefslogtreecommitdiff
path: root/llvm/lib/Support/CrashRecoveryContext.cpp
diff options
context:
space:
mode:
authorAlexandre Ganea <alexandre.ganea@ubisoft.com>2020-11-12 08:31:57 -0500
committerAlexandre Ganea <alexandre.ganea@ubisoft.com>2020-11-12 08:32:16 -0500
commitec63dfe368f729b218630b95d29ff65713acd3d4 (patch)
treee00a595b7dcba6b23abe8c186af471d37fe36f08 /llvm/lib/Support/CrashRecoveryContext.cpp
parenta196e8092a9ec1c74a4d8b717d9b611430dfa498 (diff)
downloadllvm-ec63dfe368f729b218630b95d29ff65713acd3d4.zip
llvm-ec63dfe368f729b218630b95d29ff65713acd3d4.tar.gz
llvm-ec63dfe368f729b218630b95d29ff65713acd3d4.tar.bz2
[LLD] Fix include following 45b8a741fbbf271e0fb71294cb7cdce3ad4b9bf3
Diffstat (limited to 'llvm/lib/Support/CrashRecoveryContext.cpp')
-rw-r--r--llvm/lib/Support/CrashRecoveryContext.cpp1
1 files changed, 1 insertions, 0 deletions
diff --git a/llvm/lib/Support/CrashRecoveryContext.cpp b/llvm/lib/Support/CrashRecoveryContext.cpp
index 77f0018..3d3ca7f 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();