fix start function not being remapped

This commit is contained in:
2021-11-14 17:19:01 +01:00
parent dbe59a45f5
commit 812847d9e5

View File

@@ -396,7 +396,7 @@ impl<'a> ParsedModule<'a> {
if let Some(start_function) = self.start_section { if let Some(start_function) = self.start_section {
module.section(&enc::StartSection { module.section(&enc::StartSection {
function_index: start_function, function_index: *function_map.get(&start_function).unwrap(),
}); });
} }