diff options
| author | Kamil Rytarowski <n54@gmx.com> | 2019-11-04 01:10:59 +0100 |
|---|---|---|
| committer | Kamil Rytarowski <n54@gmx.com> | 2019-11-04 01:10:59 +0100 |
| commit | 858b15cb9cf675b33d5c3bf17b3050d98b73ec3f (patch) | |
| tree | abeb9b8efb66b8e1d736640e5996905e6066dcb9 | |
| parent | e345bc6e65a3a7b8797a0e8322771cf1a3ef1213 (diff) | |
| download | bcm5719-llvm-858b15cb9cf675b33d5c3bf17b3050d98b73ec3f.tar.gz bcm5719-llvm-858b15cb9cf675b33d5c3bf17b3050d98b73ec3f.zip | |
[compiler-rt] [msan] Correct the __libc_thr_keycreate prototype
Fixes build with GCC8.
| -rw-r--r-- | compiler-rt/lib/msan/msan_interceptors.cpp | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/compiler-rt/lib/msan/msan_interceptors.cpp b/compiler-rt/lib/msan/msan_interceptors.cpp index 1d9d9f7986d..1c6956eca0f 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) { |

