Address review comments.

This commit is contained in:
Chris Fallin
2021-01-22 16:02:29 -08:00
parent 7e12abce71
commit f54d0d05c7
2 changed files with 128 additions and 44 deletions

View File

@@ -226,8 +226,8 @@ fn append_memory_deref(
}
}
LabelValueLoc::Reg(r) => {
let reg = isa.map_regalloc_reg_to_dwarf(r)? as u8;
writer.write_u8(gimli::constants::DW_OP_breg0.0 + reg)?;
let reg = isa.map_regalloc_reg_to_dwarf(r)?;
writer.write_op_breg(reg)?;
let memory_offset = match frame_info.vmctx_memory_offset() {
Some(offset) => offset,
None => {