Use make_shared instead of make_unique.

llvm-svn: 305369
This commit is contained in:
Zachary Turner 2017-06-14 05:48:33 +00:00
parent 6bffe44659
commit ba59c2f63b
1 changed files with 2 additions and 2 deletions

View 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;