[libc-commits] [PATCH] D149863: [libc] Maintain proper alignment for the hermetic tests malloc

Joseph Huber via Phabricator via libc-commits libc-commits at lists.llvm.org
Thu May 4 11:00:56 PDT 2023


jhuber6 added a comment.

In D149863#4319485 <https://reviews.llvm.org/D149863#4319485>, @sivachandra wrote:

> Using `alignof(long double)` is the best I think. Feel free to change to it.

Was somewhat concerned using long double since it would double the wasted space for most tests. I wonder if it's possible to run `asan` or `ubsan` on the hermetic tests to catch stuff like this.


Repository:
  rG LLVM Github Monorepo

CHANGES SINCE LAST ACTION
  https://reviews.llvm.org/D149863/new/

https://reviews.llvm.org/D149863



More information about the libc-commits mailing list