[libcxx-commits] [libcxx] [libc++] Don't assume alignment of empty ranges (PR #213752)

Louis Dionne via libcxx-commits libcxx-commits at lists.llvm.org
Fri Aug 7 06:25:29 PDT 2026


ldionne wrote:

> Kinda related: Should we assert alignment (possibly only in debug)? This seems like the kind of thing that will bite users in the end.

We already do (unless you had something else in mind): https://github.com/llvm/llvm-project/blob/d1784c08ac847c9ee2a92c2634c24d5696f5d9c1/libcxx/include/__memory/assume_aligned.h#L33-L34

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


More information about the libcxx-commits mailing list