[all-commits] [llvm/llvm-project] 09c80e: Reland [Clang] Deprecate `__is_trivially_relocatab...

cor3ntin via All-commits all-commits at lists.llvm.org
Thu May 8 10:26:12 PDT 2025


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 09c80e2944967332c4d889ef19a001ebb4521782
      https://github.com/llvm/llvm-project/commit/09c80e2944967332c4d889ef19a001ebb4521782
  Author: cor3ntin <corentinjabot at gmail.com>
  Date:   2025-05-08 (Thu, 08 May 2025)

  Changed paths:
    M clang/docs/LanguageExtensions.rst
    M clang/docs/ReleaseNotes.rst
    M clang/include/clang/Basic/TokenKinds.def
    M clang/lib/Sema/SemaExprCXX.cpp
    M clang/test/SemaCXX/attr-trivial-abi.cpp
    M clang/test/SemaCXX/ptrauth-triviality.cpp
    M clang/test/SemaCXX/type-traits-nonobject.cpp

  Log Message:
  -----------
  Reland [Clang] Deprecate `__is_trivially_relocatable` (#139061)

The C++26 standard relocatable type traits has slightly different
semantics, so we introduced a new
``__builtin_is_cpp_trivially_relocatable``
when implementing trivial relocation in #127636.

However, having multiple relocatable traits would be confusing
in the long run, so we deprecate the old trait.

As discussed in #127636

`__builtin_is_cpp_trivially_relocatable` should be used instead.



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