Skip to content

Commit

Permalink
fix llvm_build_struct_gep for PR6167, patch by
Browse files Browse the repository at this point in the history
Peter Hawkins!


git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@95644 91177308-0d34-0410-b5e6-96231b3b80d8
  • Loading branch information
lattner committed Feb 9, 2010
1 parent e576f29 commit c3c3be5
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions bindings/ocaml/llvm/llvm_ocaml.c
Original file line number Diff line number Diff line change
Expand Up @@ -1263,11 +1263,10 @@ CAMLprim LLVMValueRef llvm_build_in_bounds_gep(LLVMValueRef Pointer,

/* llvalue -> int -> string -> llbuilder -> llvalue */
CAMLprim LLVMValueRef llvm_build_struct_gep(LLVMValueRef Pointer,
value Indices, value Name,
value Index, value Name,
value B) {
return LLVMBuildInBoundsGEP(Builder_val(B), Pointer,
(LLVMValueRef *) Op_val(Indices),
Wosize_val(Indices), String_val(Name));
return LLVMBuildStructGEP(Builder_val(B), Pointer,
Int_val(Index), String_val(Name));
}

/* string -> string -> llbuilder -> llvalue */
Expand Down

0 comments on commit c3c3be5

Please sign in to comment.