diff --git a/lib/llvm-backend/src/code.rs b/lib/llvm-backend/src/code.rs index 028207a8c..932ebfc1c 100644 --- a/lib/llvm-backend/src/code.rs +++ b/lib/llvm-backend/src/code.rs @@ -2473,7 +2473,10 @@ impl ModuleCodeGenerator Ok(()) } - fn next_function(&mut self) -> Result<&mut LLVMFunctionCodeGenerator, CodegenError> { + fn next_function( + &mut self, + _module_info: &ModuleInfo, + ) -> Result<&mut LLVMFunctionCodeGenerator, CodegenError> { // Creates a new function and returns the function-scope code generator for it. let (context, builder, intrinsics) = match self.functions.last_mut() { Some(x) => ( diff --git a/lib/singlepass-backend/src/codegen_x64.rs b/lib/singlepass-backend/src/codegen_x64.rs index 9aa6c9151..9cb163372 100644 --- a/lib/singlepass-backend/src/codegen_x64.rs +++ b/lib/singlepass-backend/src/codegen_x64.rs @@ -300,7 +300,10 @@ impl ModuleCodeGenerator Ok(()) } - fn next_function(&mut self) -> Result<&mut X64FunctionCode, CodegenError> { + fn next_function( + &mut self, + _module_info: &ModuleInfo, + ) -> Result<&mut X64FunctionCode, CodegenError> { let (mut assembler, mut function_labels, br_table_data, breakpoints) = match self.functions.last_mut() { Some(x) => (