Skip to content

Commit 467f969

Browse files
[compiler-rt] Fix a warning
This patch fixes: compiler-rt/lib/sanitizer_common/sanitizer_tls_get_addr.cpp:126:72: error: format specifies type 'void *' but the argument has type 'uptr *' (aka 'unsigned long *') [-Werror,-Wformat-pedantic]
1 parent bf4347b commit 467f969

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

compiler-rt/lib/sanitizer_common/sanitizer_tls_get_addr.cpp

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -123,7 +123,8 @@ DTLS::DTV *DTLS_on_tls_get_addr(void *arg_void, void *res,
123123
VReport(2,
124124
"__tls_get_addr: %p {0x%zx,0x%zx} => %p; tls_beg: %p; sp: %p "
125125
"num_live_dtls %zd\n",
126-
(void *)arg, arg->dso_id, arg->offset, res, (void *)tls_beg, &tls_beg,
126+
(void *)arg, arg->dso_id, arg->offset, res, (void *)tls_beg,
127+
(void *)&tls_beg,
127128
atomic_load(&number_of_live_dtls, memory_order_relaxed));
128129
if (dtls.last_memalign_ptr == tls_beg) {
129130
tls_size = dtls.last_memalign_size;

0 commit comments

Comments
 (0)