simplify borrowing inference of compiler config in llvm backend

This commit is contained in:
Mark McCaskey
2019-03-27 14:25:29 -07:00
parent 51c2111d53
commit c51d44578d
2 changed files with 2 additions and 2 deletions

View File

@ -40,7 +40,7 @@ impl Compiler for LLVMCompiler {
) -> Result<ModuleInner, CompileError> {
validate(wasm)?;
let (info, code_reader) = read_info::read_module(wasm, &compiler_config).unwrap();
let (info, code_reader) = read_info::read_module(wasm, compiler_config).unwrap();
let (module, intrinsics) = code::parse_function_bodies(&info, code_reader).unwrap();
let (backend, protected_caller) = backend::LLVMBackend::new(module, intrinsics);

View File

@ -20,7 +20,7 @@ use wasmparser::{
pub fn read_module(
wasm: &[u8],
compiler_config: &CompilerConfig,
compiler_config: CompilerConfig,
) -> Result<(ModuleInfo, CodeSectionReader), BinaryReaderError> {
let mut info = ModuleInfo {
memories: Map::new(),