[llvm-branch-commits] Add pointer field protection feature. (PR #133538)
Peter Collingbourne via llvm-branch-commits
llvm-branch-commits at lists.llvm.org
Wed May 14 22:25:30 PDT 2025
================
@@ -928,6 +936,11 @@ namespace {
if (PointerAuthQualifier Q = F->getType().getPointerAuth();
Q && Q.isAddressDiscriminated())
return false;
+ // Non-trivially-copyable fields with pointer field protection need to be
----------------
pcc wrote:
We could move lines 936-943 into a separate function that takes a QualType and call it from other places. However, I checked the other callers of `PointerAuthQualifier::isAddressDiscriminated` and I think almost all of them are already correct.
https://github.com/llvm/llvm-project/pull/133538
More information about the llvm-branch-commits
mailing list