diff options
| author | bjorn3 <17426603+bjorn3@users.noreply.github.com> | 2023-07-22 13:32:34 +0000 |
|---|---|---|
| committer | bjorn3 <17426603+bjorn3@users.noreply.github.com> | 2023-07-22 13:32:34 +0000 |
| commit | e8168ce8a3fde85460481dfba2296eb7e6bc5060 (patch) | |
| tree | 9c529fcbd1aa28e76d0a5136dc70a9f89f61b007 /src/debuginfo | |
| parent | 648f5e4208e1e88b9048170f05095e483bb9b2d7 (diff) | |
| download | rust-e8168ce8a3fde85460481dfba2296eb7e6bc5060.tar.gz rust-e8168ce8a3fde85460481dfba2296eb7e6bc5060.zip | |
Merge commit '1eded3619d0e55d57521a259bf27a03906fdfad0' into sync_cg_clif-2023-07-22
Diffstat (limited to 'src/debuginfo')
| -rw-r--r-- | src/debuginfo/line_info.rs | 2 | ||||
| -rw-r--r-- | src/debuginfo/mod.rs | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/src/debuginfo/line_info.rs b/src/debuginfo/line_info.rs index 1b454b6667c..50bc7a127af 100644 --- a/src/debuginfo/line_info.rs +++ b/src/debuginfo/line_info.rs @@ -165,7 +165,7 @@ impl FunctionDebugContext { for &MachSrcLoc { start, end, loc } in mcr.buffer.get_srclocs_sorted() { debug_context.dwarf.unit.line_program.row().address_offset = u64::from(start); if !loc.is_default() { - let source_loc = *self.source_loc_set.get_index(loc.bits() as usize).unwrap(); + let source_loc = self.source_loc_set[loc.bits() as usize]; create_row_for_span(debug_context, source_loc); } else { create_row_for_span(debug_context, self.function_source_loc); diff --git a/src/debuginfo/mod.rs b/src/debuginfo/mod.rs index 3a7421d8b30..8a4b1cccf14 100644 --- a/src/debuginfo/mod.rs +++ b/src/debuginfo/mod.rs @@ -38,7 +38,7 @@ pub(crate) struct DebugContext { pub(crate) struct FunctionDebugContext { entry_id: UnitEntryId, function_source_loc: (FileId, u64, u64), - source_loc_set: indexmap::IndexSet<(FileId, u64, u64)>, + source_loc_set: IndexSet<(FileId, u64, u64)>, } impl DebugContext { |
