Index: bindings/ocaml/llvm/llvm.ml =================================================================== --- bindings/ocaml/llvm/llvm.ml +++ bindings/ocaml/llvm/llvm.ml @@ -238,6 +238,12 @@ | AtomicRMW | Resume | LandingPad + | AddrSpaceCast + | CleanupRet + | CatchRet + | CatchPad + | CleanupPad + | CatchSwitch end module LandingPadClauseTy = struct Index: bindings/ocaml/llvm/llvm.mli =================================================================== --- bindings/ocaml/llvm/llvm.mli +++ 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: bindings/ocaml/llvm/llvm_ocaml.c =================================================================== --- bindings/ocaml/llvm/llvm_ocaml.c +++ 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); }