[llvm] [BOLT] Remove a redundant call to std::unique_ptr<T>::get (NFC) (PR #145211)

via llvm-commits llvm-commits at lists.llvm.org
Sat Jun 21 22:49:58 PDT 2025


llvmbot wrote:


<!--LLVM PR SUMMARY COMMENT-->

@llvm/pr-subscribers-bolt

Author: Kazu Hirata (kazutakahirata)

<details>
<summary>Changes</summary>



---
Full diff: https://github.com/llvm/llvm-project/pull/145211.diff


1 Files Affected:

- (modified) bolt/unittests/Profile/PerfSpeEvents.cpp (+1-1) 


``````````diff
diff --git a/bolt/unittests/Profile/PerfSpeEvents.cpp b/bolt/unittests/Profile/PerfSpeEvents.cpp
index 3e3e05395246c..8d023cd7b7e74 100644
--- a/bolt/unittests/Profile/PerfSpeEvents.cpp
+++ b/bolt/unittests/Profile/PerfSpeEvents.cpp
@@ -65,7 +65,7 @@ struct PerfSpeEventsTestHelper : public testing::Test {
     BC = cantFail(BinaryContext::createBinaryContext(
         ObjFile->makeTriple(), std::make_shared<orc::SymbolStringPool>(),
         ObjFile->getFileName(), nullptr, /*IsPIC*/ false,
-        DWARFContext::create(*ObjFile.get()), {llvm::outs(), llvm::errs()}));
+        DWARFContext::create(*ObjFile), {llvm::outs(), llvm::errs()}));
     ASSERT_FALSE(!BC);
   }
 

``````````

</details>


https://github.com/llvm/llvm-project/pull/145211


More information about the llvm-commits mailing list