File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -3036,16 +3036,17 @@ impl Compiler {
30363036 fn switch_to_block ( & mut self , block : ir:: BlockIdx ) {
30373037 let code = self . current_code_info ( ) ;
30383038 let prev = code. current_block ;
3039+ assert_ne ! ( prev, block, "recursive switching {prev:?} -> {block:?}" ) ;
30393040 assert_eq ! (
30403041 code. blocks[ block] . next,
30413042 ir:: BlockIdx :: NULL ,
3042- "switching to completed block"
3043+ "switching {prev:?} -> {block:?} to completed block"
30433044 ) ;
30443045 let prev_block = & mut code. blocks [ prev. 0 as usize ] ;
30453046 assert_eq ! (
30463047 prev_block. next. 0 ,
30473048 u32 :: MAX ,
3048- "switching from block that's already got a next"
3049+ "switching {prev:?} -> {block:?} from block that's already got a next"
30493050 ) ;
30503051 prev_block. next = block;
30513052 code. current_block = block;
You can’t perform that action at this time.
0 commit comments