diff options
author | Torok Edwin <edwintorok@gmail.com> | 2010-12-23 15:49:26 +0000 |
---|---|---|
committer | Torok Edwin <edwintorok@gmail.com> | 2010-12-23 15:49:26 +0000 |
commit | a156efdf71bc668093e31593713694cf076db895 (patch) | |
tree | ffe6ac57259009a2b3b028e9289f5f8258e91601 /utils/TableGen | |
parent | 9d071cbb92e2f28be2067fdb5cf21b396e34838d (diff) | |
download | external_llvm-a156efdf71bc668093e31593713694cf076db895.zip external_llvm-a156efdf71bc668093e31593713694cf076db895.tar.gz external_llvm-a156efdf71bc668093e31593713694cf076db895.tar.bz2 |
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
Diffstat (limited to 'utils/TableGen')
0 files changed, 0 insertions, 0 deletions