[all-commits] [llvm/llvm-project] 872f74: Fix std::has_unique_object_representations for _Bi...

Mital Ashok via All-commits all-commits at lists.llvm.org
Wed Jun 1 08:35:37 PDT 2022


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 872f74440f3c8b749d90384a23caa894068504f9
      https://github.com/llvm/llvm-project/commit/872f74440f3c8b749d90384a23caa894068504f9
  Author: Mital Ashok <mital.vaja at googlemail.com>
  Date:   2022-06-01 (Wed, 01 Jun 2022)

  Changed paths:
    M clang/docs/ReleaseNotes.rst
    M clang/lib/AST/ASTContext.cpp
    A clang/test/SemaCXX/has_unique_object_reps_bitint.cpp

  Log Message:
  -----------
  Fix std::has_unique_object_representations for _BitInt types with padding bits

"std::has_unique_object_representations<_BitInt(N)>" was always true,
even if the type has padding bits (since the trait assumes all integer
types have no padding bits). The standard has an explicit note that
this should not hold for types with padding bits.

Differential Revision: https://reviews.llvm.org/D125802




More information about the All-commits mailing list