================ @@ -131,8 +131,12 @@ DebugNamesDWARFIndex::GetNonSkeletonUnit(const DebugNames::Entry &entry) const { unit_offset = entry.getLocalTUOffset(); if (unit_offset) { if (DWARFUnit *cu = m_debug_info.GetUnitAtOffset(DIERef::Section::DebugInfo, - *unit_offset)) - return &cu->GetNonSkeletonUnit(); + *unit_offset)) { + DWARFUnit &ret = cu->GetNonSkeletonUnit(); ---------------- dmpots wrote:
Thanks for trying out that approach. Do you have a WIP patch you can push to a branch somewhere? Might be something we want to tackle later. Your fix seems targeted and reasonable given the amount of code relying on existing behavior. https://github.com/llvm/llvm-project/pull/157574 _______________________________________________ lldb-commits mailing list lldb-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/lldb-commits