[PATCH] D60680: [OCaml] Update api to account for FNeg and CallBr instructions
whitequark via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Tue Apr 16 07:58:24 PDT 2019
This revision was automatically updated to reflect the committed changes.
Closed by commit rL358501: [OCaml] Update api to account for FNeg and CallBr instructions (authored by whitequark, committed by ).
Repository:
rL LLVM
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D60680/new/
https://reviews.llvm.org/D60680
Files:
llvm/trunk/bindings/ocaml/llvm/llvm.ml
llvm/trunk/bindings/ocaml/llvm/llvm.mli
llvm/trunk/bindings/ocaml/llvm/llvm_ocaml.c
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);
}
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D60680.195386.patch
Type: text/x-patch
Size: 1127 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20190416/131870ab/attachment.bin>
More information about the llvm-commits
mailing list