Skip to content

Commit bbc0cd6

Browse files
committed
Update Cranelift
1 parent b6bbc0f commit bbc0cd6

File tree

2 files changed

+12
-12
lines changed

2 files changed

+12
-12
lines changed

Cargo.lock

Lines changed: 10 additions & 10 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

src/debuginfo/mod.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -355,9 +355,9 @@ fn place_location<'a, 'tcx>(
355355
fn translate_loc(isa: &dyn TargetIsa, loc: ValueLoc, stack_slots: &StackSlots) -> Option<Vec<u8>> {
356356
match loc {
357357
ValueLoc::Reg(reg) => {
358-
let machine_reg = cranelift_codegen::isa::fde::map_reg(isa, reg).unwrap().0 as u8;
358+
let machine_reg = isa.map_dwarf_register(reg).unwrap();
359359
assert!(machine_reg <= 32); // FIXME
360-
Some(vec![gimli::constants::DW_OP_reg0.0 + machine_reg])
360+
Some(vec![gimli::constants::DW_OP_reg0.0 + machine_reg as u8])
361361
}
362362
ValueLoc::Stack(ss) => {
363363
if let Some(ss_offset) = stack_slots[ss].offset {

0 commit comments

Comments
 (0)