[llvm-branch-commits] Add pointer field protection feature. (PR #133538)
Mark de Wever via llvm-branch-commits
llvm-branch-commits at lists.llvm.org
Wed Apr 9 10:46:43 PDT 2025
================
@@ -84,7 +84,7 @@ _LIBCPP_PUSH_MACROS
_LIBCPP_BEGIN_NAMESPACE_STD
template <class _Tp, class _Allocator /* = allocator<_Tp> */>
-class _LIBCPP_TEMPLATE_VIS vector {
+class _LIBCPP_TEMPLATE_VIS vector _LIBCPP_MAYBE_FORCE_NONSTANDARD_LAYOUT {
----------------
mordante wrote:
`std::vector` is used in the libc++ dylib across the ABI boundary. So this means you can only use `pointer_field_protection` when the dylib is build with `pointer_field_protection`.
https://github.com/llvm/llvm-project/pull/133538
More information about the llvm-branch-commits
mailing list