cranelift-wasm: Make FuncEnvironment::translate_ref_func take a FuncIndex
It was previously taking a raw `u32`. This change makes it more clear what index space that index points into.
This commit is contained in:
@@ -516,7 +516,7 @@ impl<'dummy_environment> FuncEnvironment for DummyFuncEnvironment<'dummy_environ
|
||||
fn translate_ref_func(
|
||||
&mut self,
|
||||
mut pos: FuncCursor,
|
||||
_func_index: u32,
|
||||
_func_index: FuncIndex,
|
||||
) -> WasmResult<ir::Value> {
|
||||
Ok(pos.ins().null(self.reference_type()))
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user