[LLVMdev] Basic block with two return instructions
Russell Wallace
russell.wallace at gmail.com
Fri Feb 5 11:49:08 PST 2010
On Fri, Feb 5, 2010 at 6:28 PM, Kenneth Uildriks <kennethuil at gmail.com> wrote:
> Since terminators are only allowed at the end of a block, you could
> always check the last statement of the block to see if it's a
> terminator. For that matter, BasicBlock::getTerminator returns the
> terminator, or NULL if it hasn't got one yet.
Perfect, thanks!
More information about the llvm-dev
mailing list