summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorBenjamin Kramer <benny.kra@googlemail.com>2012-02-07 18:58:19 +0000
committerBenjamin Kramer <benny.kra@googlemail.com>2012-02-07 18:58:19 +0000
commit57d2c785727daa20cd576fa6cd123ce4f63df6dc (patch)
treef28f459cc1bb740a92a3e91b70fa3dea1110e3b6
parent56a321df0bb2f8a0797290f6c76b0a33e7b59121 (diff)
downloadbcm5719-llvm-57d2c785727daa20cd576fa6cd123ce4f63df6dc.tar.gz
bcm5719-llvm-57d2c785727daa20cd576fa6cd123ce4f63df6dc.zip
ocaml bindings: landing pad is now the last opcode.
llvm-svn: 149997
-rw-r--r--llvm/bindings/ocaml/llvm/llvm_ocaml.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/llvm/bindings/ocaml/llvm/llvm_ocaml.c b/llvm/bindings/ocaml/llvm/llvm_ocaml.c
index b64bba17ab8..a5985d9d2b0 100644
--- a/llvm/bindings/ocaml/llvm/llvm_ocaml.c
+++ b/llvm/bindings/ocaml/llvm/llvm_ocaml.c
@@ -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);
}
OpenPOWER on IntegriCloud