From 0244d19ebbc286940cb454769394637b50d9c73b Mon Sep 17 00:00:00 2001 From: bjorn3 Date: Fri, 15 Nov 2019 21:07:18 +0100 Subject: [PATCH] Fix translate_loc for ValueLoc::Stack --- src/debuginfo/mod.rs | 3 --- 1 file changed, 3 deletions(-) diff --git a/src/debuginfo/mod.rs b/src/debuginfo/mod.rs index 1c1e5762bfa..59c5c9ac12c 100644 --- a/src/debuginfo/mod.rs +++ b/src/debuginfo/mod.rs @@ -375,9 +375,6 @@ fn translate_loc(loc: ValueLoc, stack_slots: &StackSlots) -> Option> { .write_u8(gimli::constants::DW_OP_breg0.0 + X86_64::RBP.0 as u8) .expect("bp wr"); writer.write_sleb128(ss_offset as i64 + 16).expect("ss wr"); - writer - .write_u8(gimli::constants::DW_OP_deref.0 as u8) - .expect("bp wr"); let buf = writer.into_vec(); return Some(buf); }