fix index

This commit is contained in:
NikVolf 2018-02-01 15:20:23 +03:00
parent c216d98b7e
commit e25b6cf6e3

View File

@ -27,7 +27,7 @@ pub fn optimize(
}
// If there is start function in module, it should stary
module.start_section().map(|ss| stay.insert(Symbol::Function(ss as usize)));
module.start_section().map(|ss| stay.insert(resolve_function(&module, ss)));
// All symbols used in data/element segments are also should be preserved
let mut init_symbols = Vec::new();