Box AssertKind
This commit is contained in:
parent
d530c043f7
commit
249a6f8fe1
1 changed files with 1 additions and 1 deletions
|
@ -335,7 +335,7 @@ fn codegen_fn_body(fx: &mut FunctionCx<'_, '_, '_>, start_block: Block) {
|
||||||
fx.bcx.switch_to_block(failure);
|
fx.bcx.switch_to_block(failure);
|
||||||
fx.bcx.ins().nop();
|
fx.bcx.ins().nop();
|
||||||
|
|
||||||
match msg {
|
match &**msg {
|
||||||
AssertKind::BoundsCheck { ref len, ref index } => {
|
AssertKind::BoundsCheck { ref len, ref index } => {
|
||||||
let len = codegen_operand(fx, len).load_scalar(fx);
|
let len = codegen_operand(fx, len).load_scalar(fx);
|
||||||
let index = codegen_operand(fx, index).load_scalar(fx);
|
let index = codegen_operand(fx, index).load_scalar(fx);
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue