From bac34647572d490dbb37f1e343f244e576222679 Mon Sep 17 00:00:00 2001 From: bjorn3 Date: Mon, 21 Sep 2020 14:56:19 +0200 Subject: [PATCH] Fix debug build --- src/base.rs | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/base.rs b/src/base.rs index 0d86a6010be..b5598cb5f1e 100644 --- a/src/base.rs +++ b/src/base.rs @@ -270,6 +270,7 @@ fn codegen_fn_content(fx: &mut FunctionCx<'_, '_, impl Backend>) { fx.bcx.ins().jump(target, &[]); fx.bcx.switch_to_block(failure); + fx.bcx.ins().nop(); let location = fx .get_caller_location(bb_data.terminator().source_info.span) @@ -720,6 +721,7 @@ fn trans_stmt<'tcx>( fx.bcx.ins().jump(loop_block, &[index]); fx.bcx.switch_to_block(done_block); + fx.bcx.ins().nop(); } } Rvalue::Len(place) => {