wasm: use a BitVec for called host functions

This commit is contained in:
Brian Carroll 2022-06-15 21:31:10 +01:00
parent 52f209b2f9
commit 6e30811b0c
No known key found for this signature in database
GPG key ID: 9CF4E3BF9C4722C7
6 changed files with 18 additions and 20 deletions

View file

@ -151,7 +151,7 @@ fn compile_roc_to_wasm_bytes<'a, T: Wasm32Result>(
index: init_refcount_idx,
});
module.eliminate_dead_code(env.arena, &called_preload_fns);
module.eliminate_dead_code(env.arena, called_preload_fns);
let mut app_module_bytes = std::vec::Vec::with_capacity(module.size());
module.serialize(&mut app_module_bytes);