[compiler-rt] 97aee59 - [Sanitizer] Fix compile errors in rtl-old/tsan_rtl.cpp

Julian Lettner via llvm-commits llvm-commits at lists.llvm.org
Thu Oct 6 12:28:56 PDT 2022


Author: Julian Lettner
Date: 2022-10-06T12:28:36-07:00
New Revision: 97aee595bf81a0c266a1b9d7c9a2c97603d5159c

URL: https://github.com/llvm/llvm-project/commit/97aee595bf81a0c266a1b9d7c9a2c97603d5159c
DIFF: https://github.com/llvm/llvm-project/commit/97aee595bf81a0c266a1b9d7c9a2c97603d5159c.diff

LOG: [Sanitizer] Fix compile errors in rtl-old/tsan_rtl.cpp

Differential Revision: https://reviews.llvm.org/D134389

Added: 
    

Modified: 
    compiler-rt/lib/tsan/rtl-old/tsan_rtl.cpp

Removed: 
    


################################################################################
diff  --git a/compiler-rt/lib/tsan/rtl-old/tsan_rtl.cpp b/compiler-rt/lib/tsan/rtl-old/tsan_rtl.cpp
index 5a8d877af724f..155a230f3ca3f 100644
--- a/compiler-rt/lib/tsan/rtl-old/tsan_rtl.cpp
+++ b/compiler-rt/lib/tsan/rtl-old/tsan_rtl.cpp
@@ -16,6 +16,7 @@
 #include "sanitizer_common/sanitizer_atomic.h"
 #include "sanitizer_common/sanitizer_common.h"
 #include "sanitizer_common/sanitizer_file.h"
+#include "sanitizer_common/sanitizer_interface_internal.h"
 #include "sanitizer_common/sanitizer_libc.h"
 #include "sanitizer_common/sanitizer_placement_new.h"
 #include "sanitizer_common/sanitizer_stackdepot.h"
@@ -415,9 +416,6 @@ void Initialize(ThreadState *thr) {
   __tsan::InitializePlatformEarly();
 
 #if !SANITIZER_GO
-  // Re-exec ourselves if we need to set additional env or command line args.
-  MaybeReexec();
-
   InitializeAllocator();
   ReplaceSystemMalloc();
 #endif


        


More information about the llvm-commits mailing list