ADT: Allow IntrusiveRefCntPtr construction from std::unique_ptr, NFC
authorDuncan P. N. Exon Smith <dexonsmith@apple.com>
Tue, 8 Dec 2020 22:54:55 +0000 (14:54 -0800)
committerDuncan P. N. Exon Smith <dexonsmith@apple.com>
Wed, 9 Dec 2020 01:33:19 +0000 (17:33 -0800)
commit5207f19d103dc3e0ec974fa64d2c031d84d497a8
treedac2fd198451af1afa6ad950ded0b979e7d9a2db
parent64e7685368894742517524878716184a8cd3ba9b
ADT: Allow IntrusiveRefCntPtr construction from std::unique_ptr, NFC

Allow a `std::unique_ptr` to be moved into the an `IntrusiveRefCntPtr`,
and remove a couple of now-unnecessary `release()` calls.

Differential Revision: https://reviews.llvm.org/D92888
clang-tools-extra/clangd/support/ThreadsafeFS.cpp
clang/lib/Tooling/AllTUsExecution.cpp
clang/lib/Tooling/DependencyScanning/DependencyScanningWorker.cpp
llvm/include/llvm/ADT/IntrusiveRefCntPtr.h
llvm/unittests/ADT/IntrusiveRefCntPtrTest.cpp