[llvm-branch-commits] Prepare libcxx and libcxxabi for pointer field protection. (PR #151651)
Nikolas Klauser via llvm-branch-commits
llvm-branch-commits at lists.llvm.org
Wed Sep 10 08:13:37 PDT 2025
================
@@ -1262,6 +1275,14 @@ typedef __char32_t char32_t;
# define _LIBCPP_HAS_EXPLICIT_THIS_PARAMETER 0
# endif
+# if defined(__POINTER_FIELD_PROTECTION__)
+# define _LIBCPP_PFP [[clang::pointer_field_protection]]
+# define _LIBCPP_NO_PFP [[clang::no_field_protection]]
----------------
philnik777 wrote:
These should be _Uglified. Do these attributes do anything with pfp disabled? If no, why not simply check for their availability like with other attributes?
https://github.com/llvm/llvm-project/pull/151651
More information about the llvm-branch-commits
mailing list