[llvm] r193948 - [OCaml] Llvm_target: fix typo (Int_val instead of Int64_val)

Peter Zotov whitequark at whitequark.org
Sun Nov 3 01:27:08 PDT 2013


Author: whitequark
Date: Sun Nov  3 02:27:08 2013
New Revision: 193948

URL: http://llvm.org/viewvc/llvm-project?rev=193948&view=rev
Log:
[OCaml] Llvm_target: fix typo (Int_val instead of Int64_val)

Modified:
    llvm/trunk/bindings/ocaml/target/target_ocaml.c

Modified: llvm/trunk/bindings/ocaml/target/target_ocaml.c
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/bindings/ocaml/target/target_ocaml.c?rev=193948&r1=193947&r2=193948&view=diff
==============================================================================
--- llvm/trunk/bindings/ocaml/target/target_ocaml.c (original)
+++ llvm/trunk/bindings/ocaml/target/target_ocaml.c Sun Nov  3 02:27:08 2013
@@ -92,7 +92,7 @@ CAMLprim value llvm_preferred_align_of_g
 /* DataLayout.t -> Llvm.lltype -> Int64.t -> int */
 CAMLprim value llvm_element_at_offset(LLVMTargetDataRef TD, LLVMTypeRef Ty,
                                       value Offset) {
-  return Val_int(LLVMElementAtOffset(TD, Ty, Int_val(Offset)));
+  return Val_int(LLVMElementAtOffset(TD, Ty, Int64_val(Offset)));
 }
 
 /* DataLayout.t -> Llvm.lltype -> int -> Int64.t */





More information about the llvm-commits mailing list