Apply clang-tidy fixes for readability-redundant-smartptr-get in SampleProfReader.cpp (NFC)

This commit is contained in:
Kazu Hirata 2022-03-28 09:18:39 -07:00
parent 14415a3a5a
commit d3e5f0ab01
1 changed files with 1 additions and 1 deletions

View File

@ -1828,7 +1828,7 @@ SampleProfileReaderItaniumRemapper::create(std::unique_ptr<MemoryBuffer> &B,
SampleProfileReader &Reader,
LLVMContext &C) {
auto Remappings = std::make_unique<SymbolRemappingReader>();
if (Error E = Remappings->read(*B.get())) {
if (Error E = Remappings->read(*B)) {
handleAllErrors(
std::move(E), [&](const SymbolRemappingParseError &ParseError) {
C.diagnose(DiagnosticInfoSampleProfile(B->getBufferIdentifier(),