[LLVMdev] Emit code for 'unreachable'

Anton Korobeynikov anton at korobeynikov.info
Mon Apr 14 03:47:49 PDT 2014


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