Skip to content

Commit a86344c

Browse files
[lldb] Remove redundant calls to std::unique_ptr<T>::get (NFC) (NFC) (#140440)
1 parent 852b11c commit a86344c

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

lldb/source/Target/RegisterContextUnwind.cpp

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -273,7 +273,7 @@ void RegisterContextUnwind::InitializeZerothFrame() {
273273
call_site_unwind_plan = func_unwinders_sp->GetUnwindPlanAtCallSite(
274274
process->GetTarget(), m_thread);
275275

276-
if (call_site_unwind_plan.get() != nullptr) {
276+
if (call_site_unwind_plan != nullptr) {
277277
m_fallback_unwind_plan_sp = call_site_unwind_plan;
278278
if (TryFallbackUnwindPlan())
279279
cfa_status = true;
@@ -1725,10 +1725,10 @@ RegisterContextUnwind::SavedLocationForRegister(
17251725
// tricky frame and our usual techniques can continue to be used.
17261726

17271727
bool RegisterContextUnwind::TryFallbackUnwindPlan() {
1728-
if (m_fallback_unwind_plan_sp.get() == nullptr)
1728+
if (m_fallback_unwind_plan_sp == nullptr)
17291729
return false;
17301730

1731-
if (m_full_unwind_plan_sp.get() == nullptr)
1731+
if (m_full_unwind_plan_sp == nullptr)
17321732
return false;
17331733

17341734
if (m_full_unwind_plan_sp.get() == m_fallback_unwind_plan_sp.get() ||
@@ -1776,7 +1776,7 @@ bool RegisterContextUnwind::TryFallbackUnwindPlan() {
17761776
// fallback UnwindPlan. We checked if m_fallback_unwind_plan_sp was nullptr
17771777
// at the top -- the only way it became nullptr since then is via
17781778
// SavedLocationForRegister().
1779-
if (m_fallback_unwind_plan_sp.get() == nullptr)
1779+
if (m_fallback_unwind_plan_sp == nullptr)
17801780
return true;
17811781

17821782
// Switch the full UnwindPlan to be the fallback UnwindPlan. If we decide
@@ -1865,10 +1865,10 @@ bool RegisterContextUnwind::TryFallbackUnwindPlan() {
18651865
}
18661866

18671867
bool RegisterContextUnwind::ForceSwitchToFallbackUnwindPlan() {
1868-
if (m_fallback_unwind_plan_sp.get() == nullptr)
1868+
if (m_fallback_unwind_plan_sp == nullptr)
18691869
return false;
18701870

1871-
if (m_full_unwind_plan_sp.get() == nullptr)
1871+
if (m_full_unwind_plan_sp == nullptr)
18721872
return false;
18731873

18741874
if (m_full_unwind_plan_sp.get() == m_fallback_unwind_plan_sp.get() ||

0 commit comments

Comments
 (0)