mirror of
https://github.com/mii443/wasmer.git
synced 2025-12-09 06:08:29 +00:00
Make this match return a CompileError instead of use unimplemented!.
This commit is contained in:
@@ -246,13 +246,17 @@ fn generate_trampoline<'ctx>(
|
|||||||
.results()
|
.results()
|
||||||
.iter()
|
.iter()
|
||||||
.map(|ty| match ty {
|
.map(|ty| match ty {
|
||||||
Type::I32 | Type::F32 => 32,
|
Type::I32 | Type::F32 => Ok(32),
|
||||||
Type::I64 | Type::F64 => 64,
|
Type::I64 | Type::F64 => Ok(64),
|
||||||
Type::V128 => 128,
|
Type::V128 => Ok(128),
|
||||||
Type::AnyRef => unimplemented!("anyref in the llvm backend"),
|
ty => {
|
||||||
Type::FuncRef => unimplemented!("funcref in the llvm backend"),
|
return Err(CompileError::Codegen(format!(
|
||||||
|
"generate_trampoline: unimplemented wasm_common type {:?}",
|
||||||
|
ty
|
||||||
|
)))
|
||||||
|
}
|
||||||
})
|
})
|
||||||
.collect::<Vec<i32>>();
|
.collect::<Result<Vec<i32>, _>>()?;
|
||||||
|
|
||||||
let _is_sret = match func_sig_returns_bitwidths.as_slice() {
|
let _is_sret = match func_sig_returns_bitwidths.as_slice() {
|
||||||
[]
|
[]
|
||||||
|
|||||||
Reference in New Issue
Block a user