summaryrefslogtreecommitdiff
path: root/bindings/ocaml
diff options
context:
space:
mode:
authorBenjamin Kramer <benny.kra@googlemail.com>2012-02-07 18:58:19 +0000
committerBenjamin Kramer <benny.kra@googlemail.com>2012-02-07 18:58:19 +0000
commitefde86753d6f324ac9d0b42e48fd3ebf40c17905 (patch)
treeabccb677af7fd27619b8cb3f79ed792bd85b4d96 /bindings/ocaml
parent0ae29a6b37204d95761a859d647f3e13a415c2d2 (diff)
downloadllvm-efde86753d6f324ac9d0b42e48fd3ebf40c17905.tar.gz
llvm-efde86753d6f324ac9d0b42e48fd3ebf40c17905.tar.bz2
llvm-efde86753d6f324ac9d0b42e48fd3ebf40c17905.tar.xz
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
Diffstat (limited to 'bindings/ocaml')
-rw-r--r--bindings/ocaml/llvm/llvm_ocaml.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/bindings/ocaml/llvm/llvm_ocaml.c b/bindings/ocaml/llvm/llvm_ocaml.c
index b64bba17ab..a5985d9d2b 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);
}