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 b64bba17ab843e83d5f0a79bb39c1d1a5e347a9b..a5985d9d2b04d3fab07d0eeee02f019ac80dfa45 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);
 }