We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent cad5328 commit b1ed553Copy full SHA for b1ed553
llvm/include/llvm/CodeGen/MachineBasicBlock.h
@@ -327,7 +327,7 @@ class MachineBasicBlock
327
/// typically corresponds to a `goto` in C, rather than jump tables.
328
bool terminatorIsComputedGoto() const {
329
return back().isIndirectBranch() &&
330
- llvm::all_of(successors(), [](const MachineBasicBlock *Succ) {
+ !succ_empty() && llvm::all_of(successors(), [](const MachineBasicBlock *Succ) {
331
return Succ->isIRBlockAddressTaken();
332
});
333
}
0 commit comments