================ @@ -477,19 +474,15 @@ class UnwindPlan { uint32_t GetReturnAddressRegister() { return m_return_addr_register; } uint32_t GetInitialCFARegister() const { - if (m_row_list.empty()) - return LLDB_INVALID_REGNUM; - return m_row_list.front()->GetCFAValue().GetRegisterNumber(); + if (auto it = m_rows.find(0); it != m_rows.end()) + return it->second->GetCFAValue().GetRegisterNumber(); + return LLDB_INVALID_REGNUM; } // This UnwindPlan may not be valid at every address of the function span. // For instance, a FastUnwindPlan will not be valid at the prologue setup // instructions - only in the body of the function. - void SetPlanValidAddressRange(const AddressRange &range); - - const AddressRange &GetAddressRange() const { ---------------- labath wrote:
Unused fn. https://github.com/llvm/llvm-project/pull/127661 _______________________________________________ lldb-commits mailing list lldb-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/lldb-commits