[llvm] [BOLT] Remove a redundant call to std::unique_ptr<T>::get (NFC) (PR #145211)
Kazu Hirata via llvm-commits
llvm-commits at lists.llvm.org
Sat Jun 21 22:49:30 PDT 2025
https://github.com/kazutakahirata created https://github.com/llvm/llvm-project/pull/145211
None
>From c0f1e306376da44018c20bd56087a555b001f602 Mon Sep 17 00:00:00 2001
From: Kazu Hirata <kazu at google.com>
Date: Sat, 21 Jun 2025 15:45:58 -0700
Subject: [PATCH] [BOLT] Remove a redundant call to std::unique_ptr<T>::get
(NFC)
---
bolt/unittests/Profile/PerfSpeEvents.cpp | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
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);
}
More information about the llvm-commits
mailing list