Skip to content

Commit 49fb26c

Browse files
kazutakahirataAnthony Tran
authored andcommitted
[BOLT] Remove a redundant call to std::unique_ptr<T>::get (NFC) (llvm#145211)
1 parent 18e5967 commit 49fb26c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

bolt/unittests/Profile/PerfSpeEvents.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -65,7 +65,7 @@ struct PerfSpeEventsTestHelper : public testing::Test {
6565
BC = cantFail(BinaryContext::createBinaryContext(
6666
ObjFile->makeTriple(), std::make_shared<orc::SymbolStringPool>(),
6767
ObjFile->getFileName(), nullptr, /*IsPIC*/ false,
68-
DWARFContext::create(*ObjFile.get()), {llvm::outs(), llvm::errs()}));
68+
DWARFContext::create(*ObjFile), {llvm::outs(), llvm::errs()}));
6969
ASSERT_FALSE(!BC);
7070
}
7171

0 commit comments

Comments
 (0)