ocaml bindings: landing pad is now the last opcode.
authorBenjamin Kramer <benny.kra@googlemail.com>
Tue, 7 Feb 2012 18:58:19 +0000 (18:58 +0000)
committerBenjamin Kramer <benny.kra@googlemail.com>
Tue, 7 Feb 2012 18:58:19 +0000 (18:58 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@149997 91177308-0d34-0410-b5e6-96231b3b80d8

bindings/ocaml/llvm/llvm_ocaml.c

index b64bba1..a5985d9 100644 (file)
@@ -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);
 }