Remove unused sourceloc

This commit is contained in:
Syrus
2020-10-28 13:01:18 -07:00
parent eec90e7940
commit 73e502ecc5
3 changed files with 1 additions and 5 deletions

View File

@@ -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),
});