[PATCH] D125802: Fix std::has_unique_object_representations for _BitInt types with padding bits
Mital Ashok via Phabricator via cfe-commits
cfe-commits at lists.llvm.org
Tue May 17 09:19:07 PDT 2022
MitalAshok created this revision.
Herald added a project: All.
MitalAshok retitled this revision from "Fix std::has_unique_object_representations for _BitInt types with padding" to "Fix std::has_unique_object_representations for _BitInt types with padding bits".
MitalAshok edited the summary of this revision.
MitalAshok added reviewers: erichkeane, aaron.ballman.
MitalAshok added a reviewer: rsmith.
MitalAshok edited projects, added clang; removed All.
Herald added a project: All.
MitalAshok published this revision for review.
Herald added a subscriber: cfe-commits.
"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.
Repository:
rG LLVM Github Monorepo
https://reviews.llvm.org/D125802
Files:
clang/lib/AST/ASTContext.cpp
clang/test/SemaCXX/has_unique_object_reps_bitint.cpp
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D125802.430087.patch
Type: text/x-patch
Size: 4745 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/cfe-commits/attachments/20220517/63f359d6/attachment.bin>
More information about the cfe-commits
mailing list