[all-commits] [llvm/llvm-project] e8fe4d: [CodeGen] -fsanitize=alignment: add cl::opt saniti...

Fangrui Song via All-commits all-commits at lists.llvm.org
Wed Oct 18 11:43:49 PDT 2023


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: e8fe4de64ffb84924c41e54116a04570046eed74
      https://github.com/llvm/llvm-project/commit/e8fe4de64ffb84924c41e54116a04570046eed74
  Author: Fangrui Song <i at maskray.me>
  Date:   2023-10-18 (Wed, 18 Oct 2023)

  Changed paths:
    M clang/lib/CodeGen/CGBuiltin.cpp
    M clang/test/CodeGen/catch-undef-behavior.c

  Log Message:
  -----------
  [CodeGen] -fsanitize=alignment: add cl::opt sanitize-alignment-builtin to disable memcpy instrumentation (#69240)

Deploying #67766 to a large internal codebase uncovers many bugs (many
are
probably benign but need cleaning up). There are also issues in
high-profile
open-source projects like v8. Add a cl::opt to disable builtin
instrumentation
for -fsanitize=alignment to help large codebase users.

In the long term, this cl::opt option may still be useful to debug
-fsanitize=alignment instrumentation on builtins, so we probably want to
keep it around.




More information about the All-commits mailing list