llvm.org GIT mirror llvm / c3c3be5
fix llvm_build_struct_gep for PR6167, patch by Peter Hawkins! git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@95644 91177308-0d34-0410-b5e6-96231b3b80d8 Chris Lattner 9 years ago
1 changed file(s) with 3 addition(s) and 4 deletion(s). Raw diff Collapse all Expand all
12621262
12631263 /* llvalue -> int -> string -> llbuilder -> llvalue */
12641264 CAMLprim LLVMValueRef llvm_build_struct_gep(LLVMValueRef Pointer,
1265 value Indices, value Name,
1265 value Index, value Name,
12661266 value B) {
1267 return LLVMBuildInBoundsGEP(Builder_val(B), Pointer,
1268 (LLVMValueRef *) Op_val(Indices),
1269 Wosize_val(Indices), String_val(Name));
1267 return LLVMBuildStructGEP(Builder_val(B), Pointer,
1268 Int_val(Index), String_val(Name));
12701269 }
12711270
12721271 /* string -> string -> llbuilder -> llvalue */