[LLVMdev] Emit code for 'unreachable'

Vadim vadimcn at gmail.com
Mon Apr 14 13:53:53 PDT 2014


I am not seeing this happening, at least not for unreachables that
follow calls to 'noreturn' functions.

On Apr 14, 2014, at 3:48 AM, Anton Korobeynikov <anton at korobeynikov.info> wrote:

> Hello
>
> x86 backend emits ud2 instruction in this case
>
> On Mon, Apr 14, 2014 at 1:46 PM, Vadim Chugunov <vadimcn at gmail.com> wrote:
>> Hi,
>> Is it somehow possible to have LLVM emit machine code for the 'unreachable'
>> IR instruction, which would assert that it indeed never gets reached?
>>
>> Vadim
>>
>> _______________________________________________
>> LLVM Developers mailing list
>> LLVMdev at cs.uiuc.edu         http://llvm.cs.uiuc.edu
>> http://lists.cs.uiuc.edu/mailman/listinfo/llvmdev
>
>
>
> --
> With best regards, Anton Korobeynikov
> Faculty of Mathematics and Mechanics, Saint Petersburg State University



More information about the llvm-dev mailing list