mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2024-11-22 10:42:39 +01:00
[NFC][OCaml] Resolve a couple more compilation warnings
Followup to: 0b1dc49ca38a [NFC][OCaml] Resolve const and unsigned compilation warnings Differential Revision: https://reviews.llvm.org/D99420
This commit is contained in:
parent
9c42462d88
commit
859df511df
@ -885,7 +885,7 @@ CAMLprim LLVMValueRef llvm_mdnull(LLVMContextRef C) {
|
|||||||
|
|
||||||
/* llvalue -> string option */
|
/* llvalue -> string option */
|
||||||
CAMLprim value llvm_get_mdstring(LLVMValueRef V) {
|
CAMLprim value llvm_get_mdstring(LLVMValueRef V) {
|
||||||
size_t Len;
|
unsigned Len;
|
||||||
const char *CStr = LLVMGetMDString(V, &Len);
|
const char *CStr = LLVMGetMDString(V, &Len);
|
||||||
return cstr_to_string_option(CStr, Len);
|
return cstr_to_string_option(CStr, Len);
|
||||||
}
|
}
|
||||||
|
@ -314,8 +314,8 @@ CAMLprim value llvm_targetmachine_emit_to_file(LLVMModuleRef Module,
|
|||||||
char *ErrorMessage;
|
char *ErrorMessage;
|
||||||
|
|
||||||
if(LLVMTargetMachineEmitToFile(TargetMachine_val(Machine), Module,
|
if(LLVMTargetMachineEmitToFile(TargetMachine_val(Machine), Module,
|
||||||
String_val(FileName), Int_val(FileType),
|
(char *)String_val(FileName),
|
||||||
&ErrorMessage)) {
|
Int_val(FileType), &ErrorMessage)) {
|
||||||
llvm_raise(*caml_named_value("Llvm_target.Error"), ErrorMessage);
|
llvm_raise(*caml_named_value("Llvm_target.Error"), ErrorMessage);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user