llvm-6502/bindings/ocaml/llvm
Torok Edwin a156efdf71 Fix OCaml bindings crash, PR8847.
See http://caml.inria.fr/mantis/view.php?id=4166
If we call only external functions from a module, then its 'let _' bindings
don't get executed, which means that the exceptions don't get registered for use
in the C code.
This in turn causes llvm_raise to call raise_with_arg() with a NULL pointer and
cause a segmentation fault.

The workaround is to declare all 'external' functions as 'val' in these .mli
files.

Also added a separate testcase (the testcase must call only external functions
for the bug to occur).


git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@122497 91177308-0d34-0410-b5e6-96231b3b80d8
2010-12-23 15:49:26 +00:00
..
llvm_ocaml.c Add X86 MMX type to bitcode and Type. 2010-09-10 20:55:01 +00:00
llvm.ml Remove unions from the ocaml bindings. 2010-08-28 09:47:42 +00:00
llvm.mli Fix OCaml bindings crash, PR8847. 2010-12-23 15:49:26 +00:00
Makefile Fix header comment for bindings/ocaml/llvm/Makefile. 2009-08-30 23:41:20 +00:00