[compiler-rt] [TySan] Set and cache tool name. (PR #192410)
Matthew Nagy via llvm-commits
llvm-commits at lists.llvm.org
Thu Apr 16 10:09:15 PDT 2026
https://github.com/gbMattN updated https://github.com/llvm/llvm-project/pull/192410
>From 7fac3561d7fb4de9197e6e0f2c6b9e61e364dbfe Mon Sep 17 00:00:00 2001
From: gbMattN <matthew.nagy at sony.com>
Date: Thu, 16 Apr 2026 09:48:56 +0100
Subject: [PATCH] [compiler-rt][tysan]Set and cache tool name. Partial reland
of 183310
---
compiler-rt/lib/tysan/tysan.cpp | 3 +++
1 file changed, 3 insertions(+)
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