[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:38 PDT 2025


================
@@ -109,4 +109,14 @@
 #  define _LIBCXXABI_NOEXCEPT noexcept
 #endif
 
+#if defined(_LIBCXXABI_COMPILER_CLANG)
+#  if defined(__POINTER_FIELD_PROTECTION__)
+#    define _LIBCXXABI_NO_PFP [[clang::no_field_protection]]
+#  else
+#    define _LIBCXXABI_NO_PFP
+#  endif
+#else
+#  define _LIBCXXABI_NO_PFP
+#endif
----------------
philnik777 wrote:

Why is this different from the libc++ version?

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


More information about the llvm-branch-commits mailing list