Fix more compiling issues

Specifically:
- Don't truncate the list of local parameters.
- If the default destination in a br_table instruction is a loop, don't pop any results.
This commit is contained in:
Lachlan Sneff
2019-03-02 10:04:44 -08:00
parent 362e5aa160
commit a6fc06c908
2 changed files with 11 additions and 9 deletions

View File

@ -266,7 +266,6 @@ impl FuncResolver for LLVMBackend {
module: &ModuleInner,
local_func_index: LocalFuncIndex,
) -> Option<NonNull<vm::Func>> {
unimplemented!();
self.get_func(&module.info, local_func_index)
}
}
@ -290,7 +289,6 @@ impl ProtectedCaller for LLVMProtectedCaller {
vmctx: *mut vm::Ctx,
_: Token,
) -> RuntimeResult<Vec<Value>> {
unimplemented!();
let (func_ptr, ctx, signature, sig_index) =
get_func_from_index(&module, import_backing, func_index);