[llvm-branch-commits] [clang] [Clang] Add pointer field protection feature. (PR #172119)
Oliver Hunt via llvm-branch-commits
llvm-branch-commits at lists.llvm.org
Tue Jan 13 12:46:46 PST 2026
================
@@ -253,4 +253,10 @@ FIELD(IsAnyDestructorNoReturn, 1, NO_MERGE)
/// type that is intangible). HLSL only.
FIELD(IsHLSLIntangible, 1, NO_MERGE)
+/// Whether the pointer fields in this class should have pointer field
+/// protection (PFP) by default, either because of an attribute, the
+/// -fexperimental-pointer-field-protection-abi compiler flag or inheritance
+/// from a base or member with PFP.
+FIELD(IsPFPType, 1, NO_MERGE)
----------------
ojhunt wrote:
@cor3ntin has occasionally expressed concern about using in object storage for rare features so this might need to be in a side table (pinging to get his opinion)
https://github.com/llvm/llvm-project/pull/172119
More information about the llvm-branch-commits
mailing list