Replace single use of Frame::with_parameters with Frame::set_all

This commit is contained in:
Andrew Brown
2020-05-25 20:25:43 -07:00
committed by Benjamin Bouvier
parent d73cb48c29
commit 6e7276e48d
2 changed files with 2 additions and 11 deletions

View File

@@ -112,7 +112,8 @@ impl Interpreter {
.next()
.expect("to have a first block");
let parameters = function.dfg.block_params(first_block);
let mut frame = Frame::new(function).with_parameters(parameters, arguments);
let mut frame = Frame::new(function);
frame.set_all(parameters, arguments.to_vec());
self.block(&mut frame, first_block)
}