[PATCH] Emit a trap instruction for IR 'unreachable'

Yaron Keren yaron.keren at gmail.com
Sat Apr 19 00:43:51 PDT 2014


    foo:                                    # @foo
    # BB#0:                                 # %entry
            leaq    _ZN11xercesc_2_56XMLUni16fgNotationStringE(%rip), %rax
            leaq    _ZN11xercesc_2_513SchemaSymbols21fgURI_SCHEMAFORSCHEMAE(%rip), %rcx
            orq     %rax, %rcx
            ud2

  ok, this time looks good. Anyhow, ud2 is the last instruction.

http://reviews.llvm.org/D3417






More information about the llvm-commits mailing list