Skip to content

Commit 5804193

Browse files
authored
Revert "[sanitizer] Add CHECKs to validate calculated TLS range" (#108112)
Reverts #107941 Broke PPC bot
1 parent bb72865 commit 5804193

File tree

1 file changed

+0
-4
lines changed

1 file changed

+0
-4
lines changed

compiler-rt/lib/sanitizer_common/sanitizer_tls_get_addr.cpp

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -151,10 +151,6 @@ DTLS::DTV *DTLS_on_tls_get_addr(void *arg_void, void *res,
151151
// This may happen inside the DTOR of main thread, so just ignore it.
152152
tls_size = 0;
153153
}
154-
if (tls_size) {
155-
CHECK_LE(tls_beg, reinterpret_cast<uptr>(res));
156-
CHECK_LT(reinterpret_cast<uptr>(res), tls_beg + tls_size);
157-
}
158154
dtv->beg = tls_beg;
159155
dtv->size = tls_size;
160156
return dtv;

0 commit comments

Comments
 (0)