| 161 | } |
| 162 | |
| 163 | bool BasicBlock::IsSuccessor(const BasicBlock* block) const { |
| 164 | uint32_t succId = block->id(); |
| 165 | bool isSuccessor = false; |
| 166 | ForEachSuccessorLabel([&isSuccessor, succId](const uint32_t label) { |
| 167 | if (label == succId) isSuccessor = true; |
| 168 | }); |
| 169 | return isSuccessor; |
| 170 | } |
| 171 | |
| 172 | void BasicBlock::ForMergeAndContinueLabel( |
| 173 | const std::function<void(const uint32_t)>& f) { |
no test coverage detected