diff --git a/lib/compiler-cranelift/src/sink.rs b/lib/compiler-cranelift/src/sink.rs index 41ef8dd56..8a2b39eb3 100644 --- a/lib/compiler-cranelift/src/sink.rs +++ b/lib/compiler-cranelift/src/sink.rs @@ -108,12 +108,11 @@ impl binemit::TrapSink for TrapSink { fn trap( &mut self, code_offset: binemit::CodeOffset, - source_loc: ir::SourceLoc, + _source_loc: ir::SourceLoc, trap_code: ir::TrapCode, ) { self.traps.push(TrapInformation { code_offset, - source_loc: SourceLoc::new(source_loc.bits()), // TODO: Translate properly environment Trapcode into cranelift IR trap_code: translate_ir_trapcode(trap_code), }); diff --git a/lib/compiler-singlepass/src/codegen_x64.rs b/lib/compiler-singlepass/src/codegen_x64.rs index 8599d7320..aad3854ed 100644 --- a/lib/compiler-singlepass/src/codegen_x64.rs +++ b/lib/compiler-singlepass/src/codegen_x64.rs @@ -8179,7 +8179,6 @@ impl<'a> FuncGen<'a> { .into_iter() .map(|(offset, code)| TrapInformation { code_offset: offset as u32, - source_loc: Default::default(), trap_code: code, }) .collect(), diff --git a/lib/compiler/src/trap.rs b/lib/compiler/src/trap.rs index 6a0a997d1..d49d04fb7 100644 --- a/lib/compiler/src/trap.rs +++ b/lib/compiler/src/trap.rs @@ -10,8 +10,6 @@ use wasmer_vm::TrapCode; pub struct TrapInformation { /// The offset of the trapping instruction in native code. It is relative to the beginning of the function. pub code_offset: CodeOffset, - /// Location of trapping instruction in WebAssembly binary module. - pub source_loc: SourceLoc, /// Code of the trap. pub trap_code: TrapCode, }