[all-commits] [llvm/llvm-project] d3ff24: [ADT] Add makeIntrusiveRefCnt helper function

Nathan James via All-commits all-commits at lists.llvm.org
Mon Jan 11 12:17:24 PST 2021


  Branch: refs/heads/master
  Home:   https://github.com/llvm/llvm-project
  Commit: d3ff24cbf87224b23a0c99c74ed50744711909b2
      https://github.com/llvm/llvm-project/commit/d3ff24cbf87224b23a0c99c74ed50744711909b2
  Author: Nathan James <n.james93 at hotmail.co.uk>
  Date:   2021-01-11 (Mon, 11 Jan 2021)

  Changed paths:
    M llvm/include/llvm/ADT/IntrusiveRefCntPtr.h
    M llvm/unittests/ADT/IntrusiveRefCntPtrTest.cpp

  Log Message:
  -----------
  [ADT] Add makeIntrusiveRefCnt helper function

Works like std::make_unique but for IntrusiveRefCntPtr objects.
See https://lists.llvm.org/pipermail/llvm-dev/2021-January/147729.html

Reviewed By: dblaikie, MaskRay

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




More information about the All-commits mailing list