[llvm-branch-commits] [clang] [Clang] Add pointer field protection feature. (PR #172119)
Peter Collingbourne via llvm-branch-commits
llvm-branch-commits at lists.llvm.org
Thu Jan 15 18:58:16 PST 2026
================
@@ -15227,3 +15227,91 @@ bool ASTContext::useAbbreviatedThunkName(GlobalDecl VirtualMethodDecl,
ThunksToBeAbbreviated[VirtualMethodDecl] = std::move(SimplifiedThunkNames);
return Result;
}
+
+bool ASTContext::arePFPFieldsTriviallyCopyable(const RecordDecl *RD) const {
+ bool IsPAuthSupported =
----------------
pcc wrote:
```
bool isPointerAuthenticationAvailable() const {
return LangOpts.PointerAuthCalls || LangOpts.PointerAuthIntrinsics;
}
```
This doesn't seem like the right function to use because it returns whether PAuth ABI is enabled.
That being said we did end up removing the "generic" PFP support from the backend for now due to the lack of deactivation symbol support, so we don't really need to check this until we bring it back. Removed the check.
https://github.com/llvm/llvm-project/pull/172119
More information about the llvm-branch-commits
mailing list