[llvm-branch-commits] [libcxx] Prepare libcxx and libcxxabi for pointer field protection. (PR #151651)

Peter Collingbourne via llvm-branch-commits llvm-branch-commits at lists.llvm.org
Fri Dec 5 19:42:56 PST 2025


================
@@ -1067,6 +1067,12 @@ typedef __char32_t char32_t;
 #    define _LIBCPP_DIAGNOSE_NULLPTR
 #  endif
 
+#  if __has_cpp_attribute(_Clang::__no_field_protection__)
+#    define _LIBCPP_NO_PFP [[_Clang::__no_field_protection__]]
+#  else
+#    define _LIBCPP_NO_PFP
+#  endif
----------------
pcc wrote:

Done

https://github.com/llvm/llvm-project/pull/151651


More information about the llvm-branch-commits mailing list