[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
Mon Jan 12 19:34:56 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:
Hmm, I can't seem to find a function with that name. I guess a better name for this variable would be something like `IsPACOrEmuPACSupported` (EmuPAC being https://discourse.llvm.org/t/rfc-emulated-pac/85557), so we don't want to query whether PAC (the hardware feature) is supported in the current target.
https://github.com/llvm/llvm-project/pull/172119
More information about the llvm-branch-commits
mailing list