[all-commits] [llvm/llvm-project] 5207f1: ADT: Allow IntrusiveRefCntPtr construction from st...

Duncan P. N. Exon Smith via All-commits all-commits at lists.llvm.org
Tue Dec 8 17:38:34 PST 2020


  Branch: refs/heads/master
  Home:   https://github.com/llvm/llvm-project
  Commit: 5207f19d103dc3e0ec974fa64d2c031d84d497a8
      https://github.com/llvm/llvm-project/commit/5207f19d103dc3e0ec974fa64d2c031d84d497a8
  Author: Duncan P. N. Exon Smith <dexonsmith at apple.com>
  Date:   2020-12-08 (Tue, 08 Dec 2020)

  Changed paths:
    M clang-tools-extra/clangd/support/ThreadsafeFS.cpp
    M clang/lib/Tooling/AllTUsExecution.cpp
    M clang/lib/Tooling/DependencyScanning/DependencyScanningWorker.cpp
    M llvm/include/llvm/ADT/IntrusiveRefCntPtr.h
    M llvm/unittests/ADT/IntrusiveRefCntPtrTest.cpp

  Log Message:
  -----------
  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




More information about the All-commits mailing list