Merge remote-tracking branch 'origin/trunk' into wasm-dec-add

This commit is contained in:
Folkert 2021-11-22 21:25:01 +01:00
commit f2f4f3bd72
36 changed files with 1281 additions and 866 deletions

View file

@ -329,7 +329,7 @@ impl<'a> WasmBackend<'a> {
self.start_block(BlockType::NoResult)
}
let is_bool = matches!(cond_layout, Layout::Builtin(Builtin::Int1));
let is_bool = matches!(cond_layout, Layout::Builtin(Builtin::Bool));
let cond_type = WasmLayout::new(cond_layout).value_type();
// then, we jump whenever the value under scrutiny is equal to the value of a branch