From 5804193e38680683b370cb3ced46c018d4dbd1b2 Mon Sep 17 00:00:00 2001 From: Florian Mayer Date: Tue, 10 Sep 2024 16:14:07 -0700 Subject: [PATCH] Revert "[sanitizer] Add CHECKs to validate calculated TLS range" (#108112) Reverts llvm/llvm-project#107941 Broke PPC bot --- compiler-rt/lib/sanitizer_common/sanitizer_tls_get_addr.cpp | 4 ---- 1 file changed, 4 deletions(-) diff --git a/compiler-rt/lib/sanitizer_common/sanitizer_tls_get_addr.cpp b/compiler-rt/lib/sanitizer_common/sanitizer_tls_get_addr.cpp index a1107ff7d24737..666e6f3b351067 100644 --- a/compiler-rt/lib/sanitizer_common/sanitizer_tls_get_addr.cpp +++ b/compiler-rt/lib/sanitizer_common/sanitizer_tls_get_addr.cpp @@ -151,10 +151,6 @@ DTLS::DTV *DTLS_on_tls_get_addr(void *arg_void, void *res, // This may happen inside the DTOR of main thread, so just ignore it. tls_size = 0; } - if (tls_size) { - CHECK_LE(tls_beg, reinterpret_cast(res)); - CHECK_LT(reinterpret_cast(res), tls_beg + tls_size); - } dtv->beg = tls_beg; dtv->size = tls_size; return dtv;