Page MenuHomePhabricator

D60680.diff
No OneTemporary

File Metadata

Created
Thu, Dec 12, 5:42 AM

D60680.diff

Index: llvm/trunk/bindings/ocaml/llvm/llvm.ml
===================================================================
--- llvm/trunk/bindings/ocaml/llvm/llvm.ml
+++ llvm/trunk/bindings/ocaml/llvm/llvm.ml
@@ -244,6 +244,8 @@
| CatchPad
| CleanupPad
| CatchSwitch
+ | FNeg
+ | CallBr
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
@@ -266,6 +266,8 @@
| CatchPad
| CleanupPad
| CatchSwitch
+ | FNeg
+ | CallBr
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
@@ -1534,7 +1534,7 @@
if (!LLVMIsAInstruction(Inst))
failwith("Not an instruction");
o = LLVMGetInstructionOpcode(Inst);
- assert (o <= LLVMCatchSwitch);
+ assert (o <= LLVMCallBr);
return Val_int(o);
}

Event Timeline