[clang] [PAC][clang] Define `PointerAuthQualifier` and `PointerAuthenticationMode` (PR #84384)
Daniil Kovalev via cfe-commits
cfe-commits at lists.llvm.org
Tue Apr 16 10:30:34 PDT 2024
================
@@ -251,15 +423,16 @@ class Qualifiers {
}
// Deserialize qualifiers from an opaque representation.
- static Qualifiers fromOpaqueValue(unsigned opaque) {
+ static Qualifiers fromOpaqueValue(uint64_t Opaque) {
Qualifiers Qs;
- Qs.Mask = opaque;
+ Qs.Mask = uint32_t(Opaque);
----------------
kovdan01 wrote:
Thanks, I've used numeric limits stuff since it allows `constexpr` (while `maskTrailingOnes` is more flexible for arbitrary bit count but does not have `constexpr` variant as far as I can see). See df81082d6f0210b02e72a3237ab7c03715d23488
https://github.com/llvm/llvm-project/pull/84384
More information about the cfe-commits
mailing list