[all-commits] [llvm/llvm-project] ece3e5: [libc++] NFCI: Implement make_shared as allocate_s...

Louis Dionne via All-commits all-commits at lists.llvm.org
Fri Dec 11 09:06:33 PST 2020


  Branch: refs/heads/master
  Home:   https://github.com/llvm/llvm-project
  Commit: ece3e5bb8b05370645b0add95c0da04f4a740724
      https://github.com/llvm/llvm-project/commit/ece3e5bb8b05370645b0add95c0da04f4a740724
  Author: Louis Dionne <ldionne.2 at gmail.com>
  Date:   2020-12-11 (Fri, 11 Dec 2020)

  Changed paths:
    M libcxx/include/memory
    A libcxx/test/std/utilities/memory/util.smartptr/util.smartptr.shared/util.smartptr.shared.create/allocate_shared.protected.verify.cpp
    R libcxx/test/std/utilities/memory/util.smartptr/util.smartptr.shared/util.smartptr.shared.create/make_shared.protected.fail.cpp
    A libcxx/test/std/utilities/memory/util.smartptr/util.smartptr.shared/util.smartptr.shared.create/make_shared.protected.verify.cpp

  Log Message:
  -----------
  [libc++] NFCI: Implement make_shared as allocate_shared with std::allocator

This simplifies the implementation, and it appears to be equivalent since
make_shared was allocating memory with std::allocator anyway.

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




More information about the All-commits mailing list