[llvm-branch-commits] [compiler-rt] 8cd22f3 - again

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


Author: Vitaly Buka
Date: 2024-09-11T14:51:10-07:00
New Revision: 8cd22f351c2284cf06a6c53f26c95bce04f3bac8

URL: https://github.com/llvm/llvm-project/commit/8cd22f351c2284cf06a6c53f26c95bce04f3bac8
DIFF: https://github.com/llvm/llvm-project/commit/8cd22f351c2284cf06a6c53f26c95bce04f3bac8.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