Skip to content

Commit fadd427

Browse files
[lldb] Remove redundant calls to std::unique_ptr<T>::get (NFC) (#139428)
1 parent 17b4adb commit fadd427

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
@@ -279,7 +279,7 @@ void RegisterContextUnwind::InitializeZerothFrame() {
279279
call_site_unwind_plan = func_unwinders_sp->GetUnwindPlanAtCallSite(
280280
process->GetTarget(), m_thread);
281281

282-
if (call_site_unwind_plan.get() != nullptr) {
282+
if (call_site_unwind_plan != nullptr) {
283283
m_fallback_unwind_plan_sp = call_site_unwind_plan;
284284
if (TryFallbackUnwindPlan())
285285
cfa_status = true;
@@ -1722,10 +1722,10 @@ RegisterContextUnwind::SavedLocationForRegister(
17221722
// tricky frame and our usual techniques can continue to be used.
17231723

17241724
bool RegisterContextUnwind::TryFallbackUnwindPlan() {
1725-
if (m_fallback_unwind_plan_sp.get() == nullptr)
1725+
if (m_fallback_unwind_plan_sp == nullptr)
17261726
return false;
17271727

1728-
if (m_full_unwind_plan_sp.get() == nullptr)
1728+
if (m_full_unwind_plan_sp == nullptr)
17291729
return false;
17301730

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

17791779
// Switch the full UnwindPlan to be the fallback UnwindPlan. If we decide
@@ -1862,10 +1862,10 @@ bool RegisterContextUnwind::TryFallbackUnwindPlan() {
18621862
}
18631863

18641864
bool RegisterContextUnwind::ForceSwitchToFallbackUnwindPlan() {
1865-
if (m_fallback_unwind_plan_sp.get() == nullptr)
1865+
if (m_fallback_unwind_plan_sp == nullptr)
18661866
return false;
18671867

1868-
if (m_full_unwind_plan_sp.get() == nullptr)
1868+
if (m_full_unwind_plan_sp == nullptr)
18691869
return false;
18701870

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

0 commit comments

Comments
 (0)