[clang] [clang][Driver] Remove duplicate KernelAddress sanitizer kind. NFC. (PR #209079)
via cfe-commits
cfe-commits at lists.llvm.org
Sun Jul 12 21:36:10 PDT 2026
llvmorg-github-actions[bot] wrote:
<!--LLVM PR SUMMARY COMMENT-->
@llvm/pr-subscribers-clang-driver
Author: Zeyi Xu (zeyi2)
<details>
<summary>Changes</summary>
Remove the duplicate `SanitizerKind::KernelAddress` entry from the list of sanitizers incompatible with `TypeSanitizer`.
Found using clang-tidy, with check `misc-redundant-expression`
---
Full diff: https://github.com/llvm/llvm-project/pull/209079.diff
1 Files Affected:
- (modified) clang/lib/Driver/SanitizerArgs.cpp (+1-1)
``````````diff
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),
``````````
</details>
https://github.com/llvm/llvm-project/pull/209079
More information about the cfe-commits
mailing list