| 41 | } |
| 42 | |
| 43 | inline const spvtools::opt::BasicBlock* GetBasicBlock( |
| 44 | const spvtools::opt::Function* fn, uint32_t id) { |
| 45 | for (const spvtools::opt::BasicBlock& bb : *fn) { |
| 46 | if (bb.id() == id) { |
| 47 | return &bb; |
| 48 | } |
| 49 | } |
| 50 | return nullptr; |
| 51 | } |
| 52 | |
| 53 | } // namespace spvtest |
| 54 |
no test coverage detected