mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2024-12-02 00:16:25 +00:00
Fix incorrect uses of an ocaml llbuilder without extracting it from ocaml.
llvm-svn: 97368
This commit is contained in:
parent
5baff36f22
commit
6aacf8ecde
@ -978,7 +978,7 @@ CAMLprim value llvm_position_builder(value Pos, value B) {
|
||||
}
|
||||
|
||||
/* llbuilder -> llbasicblock */
|
||||
CAMLprim LLVMBasicBlockRef llvm_insertion_block(LLVMBuilderRef B) {
|
||||
CAMLprim LLVMBasicBlockRef llvm_insertion_block(value B) {
|
||||
LLVMBasicBlockRef InsertBlock = LLVMGetInsertBlock(Builder_val(B));
|
||||
if (!InsertBlock)
|
||||
raise_not_found();
|
||||
@ -986,9 +986,8 @@ CAMLprim LLVMBasicBlockRef llvm_insertion_block(LLVMBuilderRef B) {
|
||||
}
|
||||
|
||||
/* llvalue -> string -> llbuilder -> unit */
|
||||
CAMLprim value llvm_insert_into_builder(LLVMValueRef I, value Name,
|
||||
LLVMBuilderRef B) {
|
||||
LLVMInsertIntoBuilderWithName(B, I, String_val(Name));
|
||||
CAMLprim value llvm_insert_into_builder(LLVMValueRef I, value Name, value B) {
|
||||
LLVMInsertIntoBuilderWithName(Builder_val(B), I, String_val(Name));
|
||||
return Val_unit;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user