1
Fork 0

Box AssertKind

This commit is contained in:
Ben Kimock 2023-05-01 18:30:54 -04:00
parent dbba594575
commit f08f903fa9
10 changed files with 13 additions and 13 deletions

View file

@ -335,7 +335,7 @@ fn codegen_fn_body(fx: &mut FunctionCx<'_, '_, '_>, start_block: Block) {
fx.bcx.switch_to_block(failure);
fx.bcx.ins().nop();
match msg {
match &**msg {
AssertKind::BoundsCheck { ref len, ref index } => {
let len = codegen_operand(fx, len).load_scalar(fx);
let index = codegen_operand(fx, index).load_scalar(fx);