HomePhabricator

[ADT] Add makeIntrusiveRefCnt helper function

Authored by njames93 on Jan 11 2021, 12:12 PM.

Description

[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