Follow chain of empty blocks to find first non-empty block.
(blocks: &[Block], mut idx: BlockIdx)
| 2625 | |
| 2626 | /// Follow chain of empty blocks to find first non-empty block. |
| 2627 | fn next_nonempty_block(blocks: &[Block], mut idx: BlockIdx) -> BlockIdx { |
| 2628 | while idx != BlockIdx::NULL |
| 2629 | && blocks[idx.idx()].instructions.is_empty() |
| 2630 | && blocks[idx.idx()].next != BlockIdx::NULL |
| 2631 | { |
| 2632 | idx = blocks[idx.idx()].next; |
| 2633 | } |
| 2634 | idx |
| 2635 | } |
| 2636 | |
| 2637 | fn instruction_lineno(instr: &InstructionInfo) -> i32 { |
| 2638 | instr |
no test coverage detected