mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2025-01-31 12:41:49 +01:00
fix llvm_build_struct_gep for PR6167, patch by
Peter Hawkins! llvm-svn: 95644
This commit is contained in:
parent
f6d9c1f90c
commit
fbda857b5c
@ -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 */
|
||||
|
Loading…
x
Reference in New Issue
Block a user