[llvm-branch-commits] [compiler-rt] 44caa39 - again

Vitaly Buka via llvm-branch-commits llvm-branch-commits at lists.llvm.org
Wed Sep 11 10:54:19 PDT 2024


Author: Vitaly Buka
Date: 2024-09-11T10:54:04-07:00
New Revision: 44caa39f55fef8778509a8132cd41e62dfcb843c

URL: https://github.com/llvm/llvm-project/commit/44caa39f55fef8778509a8132cd41e62dfcb843c
DIFF: https://github.com/llvm/llvm-project/commit/44caa39f55fef8778509a8132cd41e62dfcb843c.diff

LOG: again

Added: 
    

Modified: 
    compiler-rt/lib/sanitizer_common/sanitizer_tls_get_addr.cpp

Removed: 
    


################################################################################
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 1113d515dcb06d..bf84a2ff60c91c 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,10 @@ 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<uptr>(res) - kDtvOffset);
-  //   CHECK_LT(reinterpret_cast<uptr>(res) - kDtvOffset, tls_beg + tls_size);
-  // }
+  if (tls_size) {
+    CHECK_LE(tls_beg, reinterpret_cast<uptr>(res) - kDtvOffset);
+    CHECK_LT(reinterpret_cast<uptr>(res) - kDtvOffset, tls_beg + tls_size);
+  }
   dtv->beg = tls_beg;
   dtv->size = tls_size;
   return dtv;


        


More information about the llvm-branch-commits mailing list