wasm: address PR feedback

This commit is contained in:
Brian Carroll 2022-03-04 19:12:18 +00:00
parent a7899bdded
commit 20e46fbda4
2 changed files with 7 additions and 8 deletions

View file

@ -218,7 +218,7 @@ pub fn copy_preloads_shrinking_dead_fns<'a, T: SerialBuffer>(
let mut live_iter = live_preload_indices
.into_iter()
.filter(|f| (*f as usize) >= preload_idx_start);
.skip_while(|f| (*f as usize) < preload_idx_start);
let mut next_live_idx = live_iter.next();
for i in preload_idx_start..call_graph.num_preloads {
match next_live_idx {