[compiler-rt] 858b15c - [compiler-rt] [msan] Correct the __libc_thr_keycreate prototype

Kamil Rytarowski via llvm-commits llvm-commits at lists.llvm.org
Sun Nov 3 16:18:36 PST 2019


Author: Kamil Rytarowski
Date: 2019-11-04T01:10:59+01:00
New Revision: 858b15cb9cf675b33d5c3bf17b3050d98b73ec3f

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

LOG: [compiler-rt] [msan] Correct the __libc_thr_keycreate prototype

Fixes build with GCC8.

Added: 
    

Modified: 
    compiler-rt/lib/msan/msan_interceptors.cpp

Removed: 
    


################################################################################
diff  --git a/compiler-rt/lib/msan/msan_interceptors.cpp b/compiler-rt/lib/msan/msan_interceptors.cpp
index 1d9d9f7986d7..1c6956eca0f6 100644
--- a/compiler-rt/lib/msan/msan_interceptors.cpp
+++ b/compiler-rt/lib/msan/msan_interceptors.cpp
@@ -1070,8 +1070,9 @@ INTERCEPTOR(int, pthread_key_create, __sanitizer_pthread_key_t *key,
 }
 
 #if SANITIZER_NETBSD
-INTERCEPTOR(void, __libc_thr_keycreate, void *m, void (*dtor)(void *value)) \
-  ALIAS(WRAPPER_NAME(pthread_key_create));
+INTERCEPTOR(int, __libc_thr_keycreate, __sanitizer_pthread_key_t *m,
+            void (*dtor)(void *value))
+ALIAS(WRAPPER_NAME(pthread_key_create));
 #endif
 
 INTERCEPTOR(int, pthread_join, void *th, void **retval) {


        


More information about the llvm-commits mailing list