Index: llvm/trunk/bindings/ocaml/llvm/llvm.ml =================================================================== --- llvm/trunk/bindings/ocaml/llvm/llvm.ml +++ llvm/trunk/bindings/ocaml/llvm/llvm.ml @@ -238,6 +238,12 @@ | AtomicRMW | Resume | LandingPad + | AddrSpaceCast + | CleanupRet + | CatchRet + | CatchPad + | CleanupPad + | CatchSwitch end module LandingPadClauseTy = struct Index: llvm/trunk/bindings/ocaml/llvm/llvm.mli =================================================================== --- llvm/trunk/bindings/ocaml/llvm/llvm.mli +++ llvm/trunk/bindings/ocaml/llvm/llvm.mli @@ -260,6 +260,12 @@ | AtomicRMW | Resume | LandingPad + | AddrSpaceCast + | CleanupRet + | CatchRet + | CatchPad + | CleanupPad + | CatchSwitch end (** The type of a clause of a [landingpad] instruction. Index: llvm/trunk/bindings/ocaml/llvm/llvm_ocaml.c =================================================================== --- llvm/trunk/bindings/ocaml/llvm/llvm_ocaml.c +++ llvm/trunk/bindings/ocaml/llvm/llvm_ocaml.c @@ -1515,7 +1515,7 @@ if (!LLVMIsAInstruction(Inst)) failwith("Not an instruction"); o = LLVMGetInstructionOpcode(Inst); - assert (o <= LLVMLandingPad); + assert (o <= LLVMCatchSwitch); return Val_int(o); }