llvm-project
69f3ea08 - [MachineBB] Make sure there are successors in terminatorIsComputedGoto. (#151342)

Commit
99 days ago
[MachineBB] Make sure there are successors in terminatorIsComputedGoto. (#151342) Currently terminatorIsComputedGoto will return for blocks with a indirect branch terminator and no successor. If there are no successor, the terminator is likely not a computed goto, return false in that case. Note that this is currently NFC, as the only use checks it only if there are successors, but it will be needed in https://github.com/llvm/llvm-project/pull/150911. PR: https://github.com/llvm/llvm-project/pull/151342
Author
Parents
Loading