[all-commits] [llvm/llvm-project] efd46b: [sanitizer] Allow use-after-scope front-end argume...

Douglas via All-commits all-commits at lists.llvm.org
Mon Apr 28 11:55:05 PDT 2025


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: efd46bc1efb18180366798134164dc9f87a6c79d
      https://github.com/llvm/llvm-project/commit/efd46bc1efb18180366798134164dc9f87a6c79d
  Author: Douglas <Douglas.Gliner at sony.com>
  Date:   2025-04-28 (Mon, 28 Apr 2025)

  Changed paths:
    M clang/lib/Driver/SanitizerArgs.cpp
    M clang/test/CodeGen/lifetime-sanitizer.c
    M clang/test/CodeGenCXX/lifetime-sanitizer.cpp

  Log Message:
  -----------
  [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.



To unsubscribe from these emails, change your notification settings at https://github.com/llvm/llvm-project/settings/notifications


More information about the All-commits mailing list