From d3f3aa04d7dfbaa15468233669fe573f9138b90d Mon Sep 17 00:00:00 2001 From: data-pup <16364986+data-pup@users.noreply.github.com> Date: Tue, 26 Nov 2019 15:08:23 -0500 Subject: [PATCH] misc. cleanup --- crates/jit/src/compiler.rs | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/crates/jit/src/compiler.rs b/crates/jit/src/compiler.rs index f1e2e5e8b1..ff30bc71eb 100644 --- a/crates/jit/src/compiler.rs +++ b/crates/jit/src/compiler.rs @@ -156,10 +156,9 @@ impl Compiler { let dbg = if let Some(debug_data) = debug_data { let target_config = self.isa.frontend_config(); - let triple = self.isa.triple().clone(); - let mut funcs = Vec::new(); let ofs = VMOffsets::new(target_config.pointer_bytes(), &module); if ofs.num_defined_memories > 0 { + let mut funcs = Vec::new(); for (i, allocated) in allocated_functions.into_iter() { let ptr = (*allocated) as *const u8; let body_len = compilation.get(i).body.len(); @@ -174,7 +173,7 @@ impl Compiler { } }; let bytes = emit_debugsections_image( - triple, + self.isa.triple().clone(), &target_config, &debug_data, &module_vmctx_info,