[clang] 0dccfdc - [clang][Driver] Remove duplicate KernelAddress sanitizer kind. NFC. (#209079)
via cfe-commits
cfe-commits at lists.llvm.org
Wed Jul 15 04:46:32 PDT 2026
Author: Zeyi Xu
Date: 2026-07-15T19:46:28+08:00
New Revision: 0dccfdc051a5865f4f0ef0e988084e70d317727e
URL: https://github.com/llvm/llvm-project/commit/0dccfdc051a5865f4f0ef0e988084e70d317727e
DIFF: https://github.com/llvm/llvm-project/commit/0dccfdc051a5865f4f0ef0e988084e70d317727e.diff
LOG: [clang][Driver] Remove duplicate KernelAddress sanitizer kind. NFC. (#209079)
Remove the duplicate `SanitizerKind::KernelAddress` entry from the list
of sanitizers incompatible with `TypeSanitizer`.
Found using clang-tidy, with check `misc-redundant-expression`
Added:
Modified:
clang/lib/Driver/SanitizerArgs.cpp
Removed:
################################################################################
diff --git a/clang/lib/Driver/SanitizerArgs.cpp b/clang/lib/Driver/SanitizerArgs.cpp
index e813efc89073d..c77ba78122a81 100644
--- a/clang/lib/Driver/SanitizerArgs.cpp
+++ b/clang/lib/Driver/SanitizerArgs.cpp
@@ -705,7 +705,7 @@ SanitizerArgs::SanitizerArgs(const ToolChain &TC,
std::make_pair(SanitizerKind::Type,
SanitizerKind::Address | SanitizerKind::KernelAddress |
SanitizerKind::Memory | SanitizerKind::Leak |
- SanitizerKind::Thread | SanitizerKind::KernelAddress),
+ SanitizerKind::Thread),
std::make_pair(SanitizerKind::Thread, SanitizerKind::Memory),
std::make_pair(SanitizerKind::Leak,
SanitizerKind::Thread | SanitizerKind::Memory),
More information about the cfe-commits
mailing list