| 87 | } |
| 88 | |
| 89 | JumpInstr::it_helper BasicBlock::targets() const { |
| 90 | if (empty()) |
| 91 | return {}; |
| 92 | if (auto jump = dynamic_cast<JumpInstr*>(m_instrs.back().get())) |
| 93 | return jump->targets(); |
| 94 | return {}; |
| 95 | } |
| 96 | |
| 97 | void BasicBlock::replaceTargetWith(const BasicBlock *from, |
| 98 | const BasicBlock *to) { |
no test coverage detected