mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2025-01-31 12:41:49 +01:00
Fix arguments to ocaml's llvm_params.
Thanks to Jianzhou Zhao for finding this. llvm-svn: 111624
This commit is contained in:
parent
42d06735ca
commit
429605f7cc
@ -964,8 +964,8 @@ CAMLprim LLVMValueRef llvm_param(LLVMValueRef Fn, value Index) {
|
||||
return LLVMGetParam(Fn, Int_val(Index));
|
||||
}
|
||||
|
||||
/* llvalue -> int -> llvalue */
|
||||
CAMLprim value llvm_params(LLVMValueRef Fn, value Index) {
|
||||
/* llvalue -> llvalue */
|
||||
CAMLprim value llvm_params(LLVMValueRef Fn) {
|
||||
value Params = alloc(LLVMCountParams(Fn), 0);
|
||||
LLVMGetParams(Fn, (LLVMValueRef *) Op_val(Params));
|
||||
return Params;
|
||||
|
Loading…
x
Reference in New Issue
Block a user