aboutsummaryrefslogtreecommitdiff
path: root/clang/lib/Frontend/CompilerInvocation.cpp
diff options
context:
space:
mode:
authorDouglas <Douglas.Gliner@sony.com>2025-04-28 11:54:43 -0700
committerGitHub <noreply@github.com>2025-04-28 11:54:43 -0700
commitefd46bc1efb18180366798134164dc9f87a6c79d (patch)
tree9f73ce637f10febff739ca0667637e31ae1a35ce /clang/lib/Frontend/CompilerInvocation.cpp
parent6d7edbb59dfa267ea33a1acf8e3c9785084b2d52 (diff)
downloadllvm-efd46bc1efb18180366798134164dc9f87a6c79d.zip
llvm-efd46bc1efb18180366798134164dc9f87a6c79d.tar.gz
llvm-efd46bc1efb18180366798134164dc9f87a6c79d.tar.bz2
[sanitizer] Allow use-after-scope front-end argument to take effect with -fsanitize=kernel-address (#137015)
Allow `-f[no]-sanitize-address-use-after-scope` to take effect under kernel-address sanitizer (`-fsanitize=kernel-address`). `use-after-scope` is now enabled by default under kernel-address sanitizer. Previously, users may have enabled `use-after-scope` checks for kernel-address sanitizer via `-mllvm -asan-use-after-scope=true`. While this may have worked for optimization levels > O0, the required lifetime intrinsics to allow for `use-after-scope` detection were not emitted under O0. This commit ensures the required lifetime intrinsics are emitted under O0 with kernel-address sanitizer.
Diffstat (limited to 'clang/lib/Frontend/CompilerInvocation.cpp')
0 files changed, 0 insertions, 0 deletions