[clang] [sanitizer] Allow use-after-scope front-end argument to take effect with -fsanitize=kernel-address (PR #137015)

Vitaly Buka via cfe-commits cfe-commits at lists.llvm.org
Wed Apr 23 21:26:36 PDT 2025


================
@@ -1099,7 +1099,13 @@ SanitizerArgs::SanitizerArgs(const ToolChain &TC,
     }
 
   } else {
-    AsanUseAfterScope = false;
+    if (AllAddedKinds & SanitizerKind::KernelAddress) {
----------------
vitalybuka wrote:

why just kernel?

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


More information about the cfe-commits mailing list