(instrs: &mut [Instruction], idx: usize)
| 849 | } |
| 850 | |
| 851 | fn canonicalize_jump_like(instrs: &mut [Instruction], idx: usize) { |
| 852 | let Some(target) = jump_target(instrs[idx]) else { |
| 853 | return; |
| 854 | }; |
| 855 | |
| 856 | canonicalize_jump_like_with_target(instrs, idx, resolve_jump_target(instrs, target)); |
| 857 | } |
| 858 | |
| 859 | fn canonicalize_jump_like_with_target(instrs: &mut [Instruction], idx: usize, target: u32) { |
| 860 | if matches!(instrs[idx], Instruction::Jump(_)) && target == next_non_nop(instrs, idx + 1) as u32 { |
no test coverage detected