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

Oliver Hunt via llvm-branch-commits llvm-branch-commits at lists.llvm.org
Mon Dec 8 12:53:25 PST 2025


ojhunt wrote:

> `std::trivially_relocate` and friends have been removed from C++26. and the new equivalent of `std::trivially_relocate` in C++29 is very likely to be based on `memcpy` or `memmov` . I am not sure how PFP can work with the future `std::trivially_relocate` at all to be honest

I'm unsure why that is being assumed here - the assertion that "trivial" means memcpy is not supported by the existing usage of trivial in the specification. It would in fact mean that the meaning of "trivial" in "trivially_relocate" is different from every other usage in the standard.

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


More information about the llvm-branch-commits mailing list