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

via llvm-commits llvm-commits at lists.llvm.org
Thu Apr 16 01:52:03 PDT 2026


llvmbot wrote:


<!--LLVM PR SUMMARY COMMENT-->

@llvm/pr-subscribers-compiler-rt-sanitizer

Author: Matthew Nagy (gbMattN)

<details>
<summary>Changes</summary>

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

---
Full diff: https://github.com/llvm/llvm-project/pull/192410.diff


1 Files Affected:

- (modified) compiler-rt/lib/tysan/tysan.cpp (+3) 


``````````diff
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;

``````````

</details>


https://github.com/llvm/llvm-project/pull/192410


More information about the llvm-commits mailing list