[all-commits] [llvm/llvm-project] 56f4ad: [Clang] Fix definition of layout-compatible to ign...

Mital Ashok via All-commits all-commits at lists.llvm.org
Sun Aug 4 02:24:28 PDT 2024


  Branch: refs/heads/release/19.x
  Home:   https://github.com/llvm/llvm-project
  Commit: 56f4adeee36560b839d0d04d4a5a8d8935006f63
      https://github.com/llvm/llvm-project/commit/56f4adeee36560b839d0d04d4a5a8d8935006f63
  Author: Mital Ashok <mital at mitalashok.co.uk>
  Date:   2024-08-04 (Sun, 04 Aug 2024)

  Changed paths:
    M clang/include/clang/AST/DeclCXX.h
    M clang/lib/AST/DeclCXX.cpp
    M clang/lib/Sema/SemaChecking.cpp
    M clang/test/SemaCXX/type-traits.cpp
    M llvm/include/llvm/ADT/STLExtras.h

  Log Message:
  -----------
  [Clang] Fix definition of layout-compatible to ignore empty classes (#92103)

Also changes the behaviour of `__builtin_is_layout_compatible`

None of the historic nor the current definition of layout-compatible
classes mention anything about base classes (other than implicitly
through being standard-layout) and are defined in terms of members, not
direct members.



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