================ @@ -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 _______________________________________________ llvm-branch-commits mailing list llvm-branch-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-branch-commits