Convert the start function index from a DefinedFuncIndex to a FuncIndex.

This commit is contained in:
Maddy
2018-08-03 13:00:31 +00:00
committed by Dan Gohman
parent f5d46cabe7
commit ee9e5cba49
3 changed files with 6 additions and 6 deletions

View File

@@ -71,7 +71,7 @@ pub struct DummyModuleInfo {
pub globals: Vec<Exportable<Global>>,
/// The start function.
pub start_func: Option<DefinedFuncIndex>,
pub start_func: Option<FuncIndex>,
}
impl DummyModuleInfo {
@@ -418,7 +418,7 @@ impl<'data> ModuleEnvironment<'data> for DummyEnvironment {
.push(String::from(name));
}
fn declare_start_func(&mut self, func_index: DefinedFuncIndex) {
fn declare_start_func(&mut self, func_index: FuncIndex) {
debug_assert!(self.info.start_func.is_none());
self.info.start_func = Some(func_index);
}