Skip to content

Commit 20ea4bc

Browse files
committed
Fix benchmarks
1 parent 33703b3 commit 20ea4bc

1 file changed

Lines changed: 8 additions & 3 deletions

File tree

compiler/vm/benches/utils.rs

Lines changed: 8 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -112,9 +112,14 @@ pub fn run(lir: impl Borrow<Lir>) -> (Heap, InlineObject) {
112112
// Run the `main` function.
113113
let environment = Struct::create(&mut heap, true, &FxHashMap::default());
114114
let responsible = HirId::create(&mut heap, true, hir::Id::user());
115-
let VmFinished { heap, result, .. } =
116-
Vm::for_function(lir, heap, main, &[environment.into()], responsible, tracer)
117-
.run_forever_without_handles();
115+
let VmFinished { heap, result, .. } = Vm::for_function(
116+
lir,
117+
heap,
118+
main,
119+
&[environment.into(), responsible.into()],
120+
tracer,
121+
)
122+
.run_forever_without_handles();
118123
match result {
119124
Ok(return_value) => (heap, return_value),
120125
Err(panic) => {

0 commit comments

Comments
 (0)