diff --git a/sway-core/src/ir_generation/function.rs b/sway-core/src/ir_generation/function.rs index 7224d4f82ce..9e6a265b589 100644 --- a/sway-core/src/ir_generation/function.rs +++ b/sway-core/src/ir_generation/function.rs @@ -2339,23 +2339,6 @@ impl<'eng> FnCompiler<'eng> { self.compile_expression_to_value(context, md_mgr, end)? ); - let return_type = Type::get_unit(context); - self.current_block.append(context).asm_block( - vec![ - AsmArg { - name: Ident::new_no_span("end".into()), - initializer: Some(end), - }, - AsmArg { - name: Ident::new_no_span("start".into()), - initializer: Some(start), - }, - ], - vec![AsmInstruction::log_no_span("end", "start", "end", "start")], - return_type, - None, - ); - let slice_len = self .current_block .append(context)