Skip to content

Commit

Permalink
[OCaml] Fix a typo
Browse files Browse the repository at this point in the history
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@194508 91177308-0d34-0410-b5e6-96231b3b80d8
  • Loading branch information
whitequark committed Nov 12, 2013
1 parent 46456f6 commit 850b520
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions bindings/ocaml/llvm/llvm_ocaml.c
Original file line number Diff line number Diff line change
Expand Up @@ -528,14 +528,14 @@ CAMLprim value llvm_dump_value(LLVMValueRef Val) {
}

/* llvalue -> string */
CAMLprim value llvm_string_of_llvalue(LLVMTypeRef M) {
char* TypeCStr;
TypeCStr = LLVMPrintValueToString(M);
CAMLprim value llvm_string_of_llvalue(LLVMValueRef M) {
char* ValueCStr;
ValueCStr = LLVMPrintValueToString(M);

value TypeStr = caml_copy_string(TypeCStr);
LLVMDisposeMessage(TypeCStr);
value ValueStr = caml_copy_string(ValueCStr);
LLVMDisposeMessage(ValueCStr);

return TypeStr;
return ValueStr;
}

/* llvalue -> llvalue -> unit */
Expand Down

0 comments on commit 850b520

Please sign in to comment.