[libcxx-commits] [libcxx] [libc++][ABI BREAK] Make std::pair trivially copyable if its members are (PR #89652)

Nikolas Klauser via libcxx-commits libcxx-commits at lists.llvm.org
Tue Apr 23 11:36:38 PDT 2024


philnik777 wrote:

> I've not really looked closely at the changes. Can you provide a rationale in the commit message why we want to do an unconditional ABI break?

IMO we should break the ABI if it doesn't actually impact people negatively. The question is mostly whether it will. For this I don't see an obvious failure mode, and it can significantly impact code gen, reducing code size and improving speed (e.g. in `std::copy` or `vector::resize`).


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


More information about the libcxx-commits mailing list