diff options
author | Benjamin Kramer <benny.kra@googlemail.com> | 2012-02-07 18:58:19 +0000 |
---|---|---|
committer | Benjamin Kramer <benny.kra@googlemail.com> | 2012-02-07 18:58:19 +0000 |
commit | efde86753d6f324ac9d0b42e48fd3ebf40c17905 (patch) | |
tree | abccb677af7fd27619b8cb3f79ed792bd85b4d96 | |
parent | 0ae29a6b37204d95761a859d647f3e13a415c2d2 (diff) | |
download | external_llvm-efde86753d6f324ac9d0b42e48fd3ebf40c17905.zip external_llvm-efde86753d6f324ac9d0b42e48fd3ebf40c17905.tar.gz external_llvm-efde86753d6f324ac9d0b42e48fd3ebf40c17905.tar.bz2 |
ocaml bindings: landing pad is now the last opcode.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@149997 91177308-0d34-0410-b5e6-96231b3b80d8
-rw-r--r-- | bindings/ocaml/llvm/llvm_ocaml.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/bindings/ocaml/llvm/llvm_ocaml.c b/bindings/ocaml/llvm/llvm_ocaml.c index b64bba1..a5985d9 100644 --- a/bindings/ocaml/llvm/llvm_ocaml.c +++ b/bindings/ocaml/llvm/llvm_ocaml.c @@ -1163,7 +1163,7 @@ CAMLprim value llvm_instr_get_opcode(LLVMValueRef Inst) { if (!LLVMIsAInstruction(Inst)) failwith("Not an instruction"); o = LLVMGetInstructionOpcode(Inst); - assert (o <= LLVMUnwind ); + assert (o <= LLVMLandingPad); return Val_int(o); } |