[compiler-rt] 4e659c6 - [NFC][sanitizer] Use InitializePlatformEarly() in test (#109224)

via llvm-commits llvm-commits at lists.llvm.org
Wed Sep 18 17:28:52 PDT 2024


Author: Vitaly Buka
Date: 2024-09-18T17:28:49-07:00
New Revision: 4e659c6ca3cb6fb24e84b8744516478096f23c73

URL: https://github.com/llvm/llvm-project/commit/4e659c6ca3cb6fb24e84b8744516478096f23c73
DIFF: https://github.com/llvm/llvm-project/commit/4e659c6ca3cb6fb24e84b8744516478096f23c73.diff

LOG: [NFC][sanitizer] Use InitializePlatformEarly() in test (#109224)

Fix windows test after #108921.

Added: 
    

Modified: 
    compiler-rt/lib/sanitizer_common/tests/sanitizer_common_test.cpp

Removed: 
    


################################################################################
diff  --git a/compiler-rt/lib/sanitizer_common/tests/sanitizer_common_test.cpp b/compiler-rt/lib/sanitizer_common/tests/sanitizer_common_test.cpp
index 7fd6bad4c0e6c1..111e55ef36bfb8 100644
--- a/compiler-rt/lib/sanitizer_common/tests/sanitizer_common_test.cpp
+++ b/compiler-rt/lib/sanitizer_common/tests/sanitizer_common_test.cpp
@@ -236,12 +236,12 @@ static void *WorkerThread(void *arg) {
 }
 
 TEST(SanitizerCommon, ThreadStackTlsMain) {
-  InitTlsSize();
+  InitializePlatformEarly();
   TestThreadInfo(true);
 }
 
 TEST(SanitizerCommon, ThreadStackTlsWorker) {
-  InitTlsSize();
+  InitializePlatformEarly();
   pthread_t t;
   PTHREAD_CREATE(&t, 0, WorkerThread, 0);
   PTHREAD_JOIN(t, 0);


        


More information about the llvm-commits mailing list