================ @@ -119,10 +121,7 @@ bool DWARFFormValue::ExtractValue(const DWARFDataExtractor &data, break; case DW_FORM_ref_addr: assert(m_unit); - if (m_unit->GetVersion() <= 2) - ref_addr_size = m_unit->GetAddressByteSize(); - else - ref_addr_size = 4; + ref_addr_size = m_unit->GetFormParams().getRefAddrByteSize(); ---------------- Michael137 wrote:
Outside the scope of this PR but seems like we can just make `ref_addr_size` local to the cases that need it. Don't see the point of having it outside the switch https://github.com/llvm/llvm-project/pull/145645 _______________________________________________ lldb-commits mailing list lldb-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/lldb-commits