[compiler-rt] a109303 - [TySan] Set and cache tool name. (#192410)

via llvm-commits llvm-commits at lists.llvm.org
Thu Apr 16 10:09:26 PDT 2026


Author: Matthew Nagy
Date: 2026-04-16T18:09:22+01:00
New Revision: a109303236e2aef39c9abe0f3264af5fa482fe1a

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

LOG: [TySan] Set and cache tool name. (#192410)

Partial reland of [sanitizer common
support](https://github.com/llvm/llvm-project/pull/183310)

Added: 
    

Modified: 
    compiler-rt/lib/tysan/tysan.cpp

Removed: 
    


################################################################################
diff  --git a/compiler-rt/lib/tysan/tysan.cpp b/compiler-rt/lib/tysan/tysan.cpp
index 7c1cf193d3cb6..6cbcafb79ebfe 100644
--- a/compiler-rt/lib/tysan/tysan.cpp
+++ b/compiler-rt/lib/tysan/tysan.cpp
@@ -491,6 +491,9 @@ bool tysan_init_is_running;
 } // namespace __tysan
 
 extern "C" SANITIZER_INTERFACE_ATTRIBUTE void __tysan_init() {
+  SanitizerToolName = "TypeSanitizer";
+  CacheBinaryName();
+
   CHECK(!tysan_init_is_running);
   if (tysan_inited)
     return;


        


More information about the llvm-commits mailing list