[clang] [PAC] Add support for __ptrauth type qualifier (PR #100830)
Akira Hatanaka via cfe-commits
cfe-commits at lists.llvm.org
Fri Mar 7 19:25:45 PST 2025
================
@@ -73,7 +73,7 @@ namespace {
// value of the expression to the unqualified, non-atomic version of
// the named type.
if (!S.Context.getLangOpts().ObjC && !DestType->isRecordType() &&
- !DestType->isArrayType()) {
+ !DestType->isArrayType() && !DestType.getPointerAuth()) {
----------------
ahatanak wrote:
It doesn't look like we have such a warning. No diagnostic is emitted for `int i = (const int)1;`.
https://github.com/llvm/llvm-project/pull/100830
More information about the cfe-commits
mailing list