[llvm-objdump] Use std::make_unique

Fix up my recent commit rG1128311a19179ceca799ff0fbc4dd206ab56e560 to
use std::make_unique instead of std::unique_ptr(new), as requested by
David Blaikie.

Differential Revision: https://reviews.llvm.org/D101822
This commit is contained in:
Tim Renouf 2021-05-04 10:10:41 +01:00
parent 089ec047be
commit ab5932ffbd
1 changed files with 1 additions and 1 deletions

View File

@ -1015,7 +1015,7 @@ static void addSymbolizer(
LabelAddrs.begin());
// Add the labels.
for (unsigned LabelNum = 0; LabelNum != LabelAddrs.size(); ++LabelNum) {
std::unique_ptr<std::string> Name(new std::string);
auto Name = std::make_unique<std::string>();
*Name = (Twine("L") + Twine(LabelNum)).str();
SynthesizedLabelNames.push_back(std::move(Name));
Symbols.push_back(SymbolInfoTy(