[libcxx-commits] [libcxx] Unconditionally lower std::string's alignment requirement from 16 to 8. (PR #68925)
Martin Storsjö via libcxx-commits
libcxx-commits at lists.llvm.org
Mon Jan 22 23:15:03 PST 2024
mstorsjo wrote:
I see an ABI break being mentioned in the commit message, as being noted and agreed to be acceptable. I'm interested to hear about all the aspects of ABI break that was considered and deemed acceptable. In particular, won't this also break the layout of user's data structures? If I have e.g. `struct { char c; std::string str; }`, this struct will now have a different layout after this change, effectively breaking the ABI of potentially any struct/class that embeds a string?
https://github.com/llvm/llvm-project/pull/68925
More information about the libcxx-commits
mailing list