[compiler-rt] 08c3cdb - [Sanitizers][PGO] missing return statement

David Carlier via llvm-commits llvm-commits at lists.llvm.org
Sat Sep 4 03:41:13 PDT 2021


Author: David Carlier
Date: 2021-09-04T11:40:58+01:00
New Revision: 08c3cdb8b8423c6bab14670bca5fd6b19a1fdfce

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

LOG: [Sanitizers][PGO] missing return statement

Added: 
    

Modified: 
    compiler-rt/lib/profile/InstrProfilingUtil.c

Removed: 
    


################################################################################
diff  --git a/compiler-rt/lib/profile/InstrProfilingUtil.c b/compiler-rt/lib/profile/InstrProfilingUtil.c
index 76b88432b0f1c..59bc0bebf4b84 100644
--- a/compiler-rt/lib/profile/InstrProfilingUtil.c
+++ b/compiler-rt/lib/profile/InstrProfilingUtil.c
@@ -336,6 +336,7 @@ COMPILER_RT_VISIBILITY int lprofSuspendSigKill() {
   if (procctl(P_PID, 0, PROC_PDEATHSIG_STATUS, &PDeachSig) == 0 &&
       PDeachSig == SIGKILL)
     procctl(P_PID, 0, PROC_PDEATHSIG_CTL, &PDisableSig);
+  return (PDeachSig == SIGKILL);
 #else
   return 0;
 #endif


        


More information about the llvm-commits mailing list