From: Zachary Turner Date: Wed, 14 Jun 2017 05:48:33 +0000 (+0000) Subject: Use make_shared instead of make_unique. X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=f0a6e52293b3094a02bee7215e969833e20f6cf3;p=llvm Use make_shared instead of make_unique. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@305369 91177308-0d34-0410-b5e6-96231b3b80d8 --- diff --git a/lib/ObjectYAML/CodeViewYAMLDebugSections.cpp b/lib/ObjectYAML/CodeViewYAMLDebugSections.cpp index e670ca923b0..728079a2a6b 100644 --- a/lib/ObjectYAML/CodeViewYAMLDebugSections.cpp +++ b/lib/ObjectYAML/CodeViewYAMLDebugSections.cpp @@ -503,7 +503,7 @@ std::shared_ptr YAMLFrameDataSubsection::toCodeViewSubsection( const codeview::StringsAndChecksums &SC) const { assert(SC.hasStrings()); - auto Result = llvm::make_unique(); + auto Result = std::make_shared(); for (const auto &YF : Frames) { codeview::FrameData F; F.CodeSize = YF.CodeSize; @@ -524,7 +524,7 @@ std::shared_ptr YAMLCoffSymbolRVASubsection::toCodeViewSubsection( BumpPtrAllocator &Allocator, const codeview::StringsAndChecksums &SC) const { - auto Result = llvm::make_unique(); + auto Result = std::make_shared(); for (const auto &RVA : RVAs) Result->addRVA(RVA); return Result;