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

Kazu Hirata via llvm-commits llvm-commits at lists.llvm.org
Mon Mar 28 09:19:30 PDT 2022


Author: Kazu Hirata
Date: 2022-03-28T09:18:39-07:00
New Revision: d3e5f0ab01c6b885082a1e12a7dfe5e55d340e52

URL: https://github.com/llvm/llvm-project/commit/d3e5f0ab01c6b885082a1e12a7dfe5e55d340e52
DIFF: https://github.com/llvm/llvm-project/commit/d3e5f0ab01c6b885082a1e12a7dfe5e55d340e52.diff

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

Added: 
    

Modified: 
    llvm/lib/ProfileData/SampleProfReader.cpp

Removed: 
    


################################################################################
diff  --git a/llvm/lib/ProfileData/SampleProfReader.cpp b/llvm/lib/ProfileData/SampleProfReader.cpp
index b1825b7369287..de1cdc6bce6ae 100644
--- a/llvm/lib/ProfileData/SampleProfReader.cpp
+++ b/llvm/lib/ProfileData/SampleProfReader.cpp
@@ -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(),


        


More information about the llvm-commits mailing list