ΒΆunsigned int GetSuccessorNumber(
    const llvm::BasicBlock* BB,
    const llvm::BasicBlock* Succ)

Description

Search for the specified successor of basic block BB and return its position in the terminator instruction's list of successors. It is an error to call this with a block that is not a successor.

Declared at: llvm/include/llvm/Analysis/CFG.h:43

Parameters

const llvm::BasicBlock* BB
const llvm::BasicBlock* Succ