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 6ccc9e5 commit 7304df1Copy full SHA for 7304df1
llvm/include/llvm/CodeGen/MachineBasicBlock.h
@@ -326,7 +326,7 @@ class MachineBasicBlock
326
/// Returns true if the original IR terminator is an `indirectbr`. This
327
/// typically corresponds to a `goto` in C, rather than jump tables.
328
bool terminatorIsComputedGoto() const {
329
- return back().isIndirectBranch() &&
+ return back().isIndirectBranch() && !succ_empty() &&
330
llvm::all_of(successors(), [](const MachineBasicBlock *Succ) {
331
return Succ->isIRBlockAddressTaken();
332
});
0 commit comments