forked from OSchip/llvm-project
Apply clang-tidy fixes for readability-redundant-smartptr-get in SampleProfReader.cpp (NFC)
This commit is contained in:
parent
14415a3a5a
commit
d3e5f0ab01
|
@ -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(),
|
||||
|
|
Loading…
Reference in New Issue