[compiler-rt] Set and cache tool name. (PR #192410)
Matthew Nagy via llvm-commits
llvm-commits at lists.llvm.org
Thu Apr 16 01:51:30 PDT 2026
https://github.com/gbMattN created https://github.com/llvm/llvm-project/pull/192410
Partial reland of [sanitizer common support](https://github.com/llvm/llvm-project/pull/183310)
>From a35f7fcd675ad3ec8326de5847807030fdb81bc2 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] 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