[all-commits] [llvm/llvm-project] c778f6: [libc++] Clean up logic around aligned/sized alloc...

Louis Dionne via All-commits all-commits at lists.llvm.org
Fri Oct 9 09:51:09 PDT 2020


  Branch: refs/heads/master
  Home:   https://github.com/llvm/llvm-project
  Commit: c778f6c4f9d511023c0d71b9e14a90e60445d314
      https://github.com/llvm/llvm-project/commit/c778f6c4f9d511023c0d71b9e14a90e60445d314
  Author: Louis Dionne <ldionne at apple.com>
  Date:   2020-10-09 (Fri, 09 Oct 2020)

  Changed paths:
    M libcxx/include/__config
    M libcxx/include/new

  Log Message:
  -----------
  [libc++] Clean up logic around aligned/sized allocation and deallocation

Due to the need to support compilers that implement builtin operator
new/delete but not their align_val_t overloaded versions, there was a
lot of complexity. By assuming that a compiler that supports the builtin
new/delete operators also supports their align_val_t overloads, the code
can be simplified quite a bit.

Differential Revision: https://reviews.llvm.org/D88301




More information about the All-commits mailing list