[all-commits] [llvm/llvm-project] e7de95: [libc++] Remove alignment_of uses (#70591)

philnik777 via All-commits all-commits at lists.llvm.org
Tue Oct 31 07:24:58 PDT 2023


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: e7de95595c3391780c113c71ac82965abe1a1850
      https://github.com/llvm/llvm-project/commit/e7de95595c3391780c113c71ac82965abe1a1850
  Author: philnik777 <nikolasklauser at berlin.de>
  Date:   2023-10-31 (Tue, 31 Oct 2023)

  Changed paths:
    M libcxx/include/__memory/temporary_buffer.h
    M libcxx/include/any
    M libcxx/include/future
    M libcxx/include/new

  Log Message:
  -----------
  [libc++] Remove alignment_of uses (#70591)

There is no reason to use `alignment_of<T>` instead of `alignof(T)` or
`_LIBCPP_ALIGNOF(T)`. It only makes the code more verbose and results in
slightly worse compile times.




More information about the All-commits mailing list