llvm::canReturn

Return true if there is at least a path through which F can return, false if there is no such path.

Synopsis

Declared in <llvm/Analysis/CFG.h>

bool
canReturn(Function const& F);

Return Value

True if F has a feasible return path; false otherwise.

Parameters

NameDescription
FFunction to test for a feasible return path.