cranelift: Fix trampoline args for b1 types

Our DataValues only have one size of booleans so we are always going to
have this mismatch of sizes
This commit is contained in:
Afonso Bordado
2021-07-21 11:56:47 +01:00
parent ebbe399725
commit 8862499529
3 changed files with 19 additions and 46 deletions

View File

@@ -198,7 +198,7 @@ impl UnboxedValues {
// Store the argument values into `values_vec`.
for ((arg, slot), param) in arguments.iter().zip(&mut values_vec).zip(&signature.params) {
assert!(
arg.ty() == param.value_type || arg.is_vector(),
arg.ty() == param.value_type || arg.is_vector() || arg.is_bool(),
"argument type mismatch: {} != {}",
arg.ty(),
param.value_type