From fecabf40069231808f6ce507f9048abcbb015f1f Mon Sep 17 00:00:00 2001 From: Alex Langford Date: Fri, 16 Jun 2023 13:27:51 -0700 Subject: [PATCH] [DebugInfo][NFCI] Follow-up to 0356ceedf2e9 --- llvm/lib/DebugInfo/DWARF/DWARFContext.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/llvm/lib/DebugInfo/DWARF/DWARFContext.cpp b/llvm/lib/DebugInfo/DWARF/DWARFContext.cpp index 97f7c8e..2eaad4b 100644 --- a/llvm/lib/DebugInfo/DWARF/DWARFContext.cpp +++ b/llvm/lib/DebugInfo/DWARF/DWARFContext.cpp @@ -938,7 +938,7 @@ const DWARFDebugAbbrev *DWARFContext::getDebugAbbrev() { return Abbrev.get(); DataExtractor abbrData(DObj->getAbbrevSection(), isLittleEndian(), 0); - Abbrev.reset(new DWARFDebugAbbrev(abbrData)); + Abbrev = std::make_unique(abbrData); return Abbrev.get(); } @@ -947,7 +947,7 @@ const DWARFDebugAbbrev *DWARFContext::getDebugAbbrevDWO() { return AbbrevDWO.get(); DataExtractor abbrData(DObj->getAbbrevDWOSection(), isLittleEndian(), 0); - AbbrevDWO.reset(new DWARFDebugAbbrev(abbrData)); + AbbrevDWO = std::make_unique(abbrData); return AbbrevDWO.get(); } -- 2.7.4