llvm::Instruction::getNumSuccessors

Return the number of successors that this terminator has.

Synopsis

Declared in <llvm/IR/Instruction.h>

unsigned int
getNumSuccessors() const;

Description

The instruction must be a terminator.

Return Value

The number of successor basic blocks.