LLVMGetBasicBlockTerminator

Function LLVMGetBasicBlockTerminator 

Source
pub unsafe extern "C" fn LLVMGetBasicBlockTerminator(
    BB: LLVMBasicBlockRef,
) -> LLVMValueRef
Expand description

Obtain the terminator instruction for a basic block.

If the basic block does not have a terminator (it is not well-formed if it doesn’t), then NULL is returned.

The returned LLVMValueRef corresponds to an llvm::Instruction.

@see llvm::BasicBlock::getTerminator()