[all-commits] [llvm/llvm-project] f9073e: [UBSan] Move type:*=sanitize handling. (#142006)

Qinkun Bao via All-commits all-commits at lists.llvm.org
Thu May 29 16:38:54 PDT 2025


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: f9073e7e62ff30def5f0d6bea6b2fb1d7ca35853
      https://github.com/llvm/llvm-project/commit/f9073e7e62ff30def5f0d6bea6b2fb1d7ca35853
  Author: Qinkun Bao <qinkun at google.com>
  Date:   2025-05-29 (Thu, 29 May 2025)

  Changed paths:
    M clang/lib/AST/ASTContext.cpp
    M clang/lib/Basic/NoSanitizeList.cpp
    M clang/test/CodeGen/ubsan-type-ignorelist-category-2.test

  Log Message:
  -----------
  [UBSan] Move type:*=sanitize handling. (#142006)

As discussed in https://github.com/llvm/llvm-project/issues/139128, this
PR moves =sanitize handling from `ASTContext::isTypeIgnoredBySanitizer`
to `NoSanitizeList::containsType`.

Before this PR: "=sanitize" has priority regardless of the order
After this PR: If multiple entries match the source, than the latest
entry takes the precedence.



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