Seal the block that should have been sealed

This commit is contained in:
Will Robson
2021-04-02 15:35:12 +01:00
parent f5f3c2fb25
commit da33496063

View File

@@ -273,6 +273,7 @@ impl Switch {
.icmp_imm(IntCC::UnsignedGreaterThan, discr, u32::max_value() as i64); .icmp_imm(IntCC::UnsignedGreaterThan, discr, u32::max_value() as i64);
bx.ins().brnz(bigger_than_u32, otherwise, &[]); bx.ins().brnz(bigger_than_u32, otherwise, &[]);
bx.ins().jump(new_block, &[]); bx.ins().jump(new_block, &[]);
bx.seal_block(new_block);
bx.switch_to_block(new_block); bx.switch_to_block(new_block);
// Cast to u32, as br_table is not implemented for integers bigger than 32bits. // Cast to u32, as br_table is not implemented for integers bigger than 32bits.