]> granicus.if.org Git - llvm/commitdiff
Use make_shared instead of make_unique.
authorZachary Turner <zturner@google.com>
Wed, 14 Jun 2017 05:48:33 +0000 (05:48 +0000)
committerZachary Turner <zturner@google.com>
Wed, 14 Jun 2017 05:48:33 +0000 (05:48 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@305369 91177308-0d34-0410-b5e6-96231b3b80d8

lib/ObjectYAML/CodeViewYAMLDebugSections.cpp

index e670ca923b0b0fa9ddeb2624da25111d31223c87..728079a2a6b67fe8ec1e707b395dace09cf0bbea 100644 (file)
@@ -503,7 +503,7 @@ std::shared_ptr<DebugSubsection> YAMLFrameDataSubsection::toCodeViewSubsection(
     const codeview::StringsAndChecksums &SC) const {
   assert(SC.hasStrings());
 
-  auto Result = llvm::make_unique<DebugFrameDataSubsection>();
+  auto Result = std::make_shared<DebugFrameDataSubsection>();
   for (const auto &YF : Frames) {
     codeview::FrameData F;
     F.CodeSize = YF.CodeSize;
@@ -524,7 +524,7 @@ std::shared_ptr<DebugSubsection>
 YAMLCoffSymbolRVASubsection::toCodeViewSubsection(
     BumpPtrAllocator &Allocator,
     const codeview::StringsAndChecksums &SC) const {
-  auto Result = llvm::make_unique<DebugSymbolRVASubsection>();
+  auto Result = std::make_shared<DebugSymbolRVASubsection>();
   for (const auto &RVA : RVAs)
     Result->addRVA(RVA);
   return Result;