mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2024-12-02 00:16:25 +00:00
[OCaml] Initialize local roots prior to raising.
On 4.02, the OCaml unwinder otherwise gets confused and segfaults. llvm-svn: 221142
This commit is contained in:
parent
772c8edf96
commit
bbaea64b40
@ -1590,11 +1590,12 @@ CAMLprim value llvm_position_builder(value Pos, value B) {
|
||||
}
|
||||
|
||||
/* llbuilder -> llbasicblock */
|
||||
CAMLprim LLVMBasicBlockRef llvm_insertion_block(value B) {
|
||||
CAMLprim value llvm_insertion_block(value B) {
|
||||
CAMLparam0();
|
||||
LLVMBasicBlockRef InsertBlock = LLVMGetInsertBlock(Builder_val(B));
|
||||
if (!InsertBlock)
|
||||
raise_not_found();
|
||||
return InsertBlock;
|
||||
caml_raise_not_found();
|
||||
CAMLreturn((value) InsertBlock);
|
||||
}
|
||||
|
||||
/* llvalue -> string -> llbuilder -> unit */
|
||||
|
Loading…
Reference in New Issue
Block a user