[llvm] [PAC][AArch64] Lower ptrauth constants in code (PR #96879)
Daniil Kovalev via llvm-commits
llvm-commits at lists.llvm.org
Thu Jun 27 13:39:19 PDT 2024
kovdan01 wrote:
> FWIW I picked this up to rebase the big ptrauth branch on top of, and I do still get:
>
> ```
> warning: lambda capture 'Mask16' is not required to be captured for this use [-Wunused-lambda-capture]
> ```
@ahmedbougacha Ah, thanks for reporting. It looks like that I was a bit wrong when said that only `constexpr` variables can be used w/o explicit capture - `const` ones which are initialized with constant expression are also allowed (see https://en.cppreference.com/w/cpp/language/lambda), so `const Mask16 = 0xffff;` suites this definition.
Let's just use `0xFFFF` as you said before, it'll result in less problems. I'll push the update to this branch shortly.
https://github.com/llvm/llvm-project/pull/96879
More information about the llvm-commits
mailing list