From 1c705d9c538d1d4a24f34e93be2582bc7e3a3da4 Mon Sep 17 00:00:00 2001 From: Jonas Devlieghere Date: Wed, 14 Aug 2019 23:52:23 +0000 Subject: [clang-tools-extra] Migrate llvm::make_unique to std::make_unique Now that we've moved to C++14, we no longer need the llvm::make_unique implementation from STLExtras.h. This patch is a mechanical replacement of (hopefully) all the llvm::make_unique instances across the monorepo. Differential revision: https://reviews.llvm.org/D66259 llvm-svn: 368944 --- clang-tools-extra/clang-doc/BitcodeReader.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'clang-tools-extra/clang-doc/BitcodeReader.cpp') diff --git a/clang-tools-extra/clang-doc/BitcodeReader.cpp b/clang-tools-extra/clang-doc/BitcodeReader.cpp index 1d8eea0..7004840 100644 --- a/clang-tools-extra/clang-doc/BitcodeReader.cpp +++ b/clang-tools-extra/clang-doc/BitcodeReader.cpp @@ -329,7 +329,7 @@ template <> llvm::Expected getCommentInfo(EnumInfo *I) { } template <> llvm::Expected getCommentInfo(CommentInfo *I) { - I->Children.emplace_back(llvm::make_unique()); + I->Children.emplace_back(std::make_unique()); return I->Children.back().get(); } @@ -690,7 +690,7 @@ llvm::Error ClangDocBitcodeReader::readBlockInfoBlock() { template llvm::Expected> ClangDocBitcodeReader::createInfo(unsigned ID) { - std::unique_ptr I = llvm::make_unique(); + std::unique_ptr I = std::make_unique(); if (auto Err = readBlock(ID, static_cast(I.get()))) return std::move(Err); return std::unique_ptr{std::move(I)}; -- cgit v1.1