[llvm-branch-commits] Prepare libcxx and libcxxabi for pointer field protection. (PR #151651)
Peter Collingbourne via llvm-branch-commits
llvm-branch-commits at lists.llvm.org
Wed Sep 10 11:32:42 PDT 2025
================
@@ -26,6 +26,12 @@
# include <locale>
#endif
+#if defined(__POINTER_FIELD_PROTECTION__)
+constexpr bool pfp_disabled = false;
+#else
+constexpr bool pfp_disabled = true;
+#endif
----------------
pcc wrote:
That's fine with me I suppose. The correct result for `__libcpp_is_trivially_relocatable` is implicitly tested by the other tests (which would crash if it was wrong).
https://github.com/llvm/llvm-project/pull/151651
More information about the llvm-branch-commits
mailing list