Tidy up unneeded references.

This commit is contained in:
Dan Gohman
2017-10-17 11:48:29 -07:00
parent e6c6f09e41
commit 35989f4069
3 changed files with 6 additions and 6 deletions

View File

@@ -80,7 +80,7 @@ impl FuncTranslator {
assert_eq!(func.dfg.num_insts(), 0, "Function must be empty");
// This clears the `ILBuilder`.
let builder = &mut FunctionBuilder::new(func, &mut self.il_builder);
let mut builder = FunctionBuilder::new(func, &mut self.il_builder);
let entry_block = builder.create_ebb();
builder.switch_to_block(entry_block, &[]); // This also creates values for the arguments.
builder.seal_block(entry_block);
@@ -88,15 +88,15 @@ impl FuncTranslator {
// `environ`. The callback functions may need to insert things in the entry block.
builder.ensure_inserted_ebb();
let num_args = declare_wasm_arguments(builder);
let num_args = declare_wasm_arguments(&mut builder);
// Set up the translation state with a single pushed control block representing the whole
// function and its return values.
let exit_block = builder.create_ebb();
self.state.initialize(&builder.func.signature, exit_block);
parse_local_decls(&mut reader, builder, num_args)?;
parse_function_body(reader, builder, &mut self.state, environ)
parse_local_decls(&mut reader, &mut builder, num_args)?;
parse_function_body(reader, &mut builder, &mut self.state, environ)
}
}