[LLVMdev] disable insertion of unreachables

Eli Friedman eli.friedman at gmail.com
Tue Sep 8 22:30:06 PDT 2009


On Tue, Sep 8, 2009 at 10:16 PM, Max
Stonebraker<max.stonebraker at gmail.com> wrote:
> Is there any way to avoid having the unreachables inserted in the first
> place?

If there's sensible control flow after a function returns, don't mark
it or calls to it noreturn.  If in fact cannot return, the concept of
control flow after the function returns fundamentally makes no sense.

-Eli



More information about the llvm-dev mailing list