[LLVMdev] Why UnreachableInst instruction is required when the last call has NoReturn flag?

Eli Friedman eli.friedman at gmail.com
Fri Jun 4 21:56:08 PDT 2010


On Fri, Jun 4, 2010 at 9:15 PM, Yuri <yuri at rawbw.com> wrote:
> Looks like these two things duplicate each other.

It's mostly for consistency; every block is required to end in a
terminator instruction, and terminator instructions only appear at the
end of a basic block.  Since "call" is not a terminator instruction,
it must be followed by one.

-Eli



More information about the llvm-dev mailing list