diff options
Diffstat (limited to 'llvm/lib/VMCore')
| -rw-r--r-- | llvm/lib/VMCore/Core.cpp | 8 | 
1 files changed, 4 insertions, 4 deletions
| diff --git a/llvm/lib/VMCore/Core.cpp b/llvm/lib/VMCore/Core.cpp index e3b2cb400fc..3c93736ce18 100644 --- a/llvm/lib/VMCore/Core.cpp +++ b/llvm/lib/VMCore/Core.cpp @@ -1909,15 +1909,15 @@ LLVMValueRef LLVMBuildStore(LLVMBuilderRef B, LLVMValueRef Val,  LLVMValueRef LLVMBuildGEP(LLVMBuilderRef B, LLVMValueRef Pointer,                            LLVMValueRef *Indices, unsigned NumIndices,                            const char *Name) { -  return wrap(unwrap(B)->CreateGEP(unwrap(Pointer), unwrap(Indices), -                                   unwrap(Indices) + NumIndices, Name)); +  ArrayRef<Value *> IdxList(unwrap(Indices), NumIndices); +  return wrap(unwrap(B)->CreateGEP(unwrap(Pointer), IdxList, Name));  }  LLVMValueRef LLVMBuildInBoundsGEP(LLVMBuilderRef B, LLVMValueRef Pointer,                                    LLVMValueRef *Indices, unsigned NumIndices,                                    const char *Name) { -  return wrap(unwrap(B)->CreateInBoundsGEP(unwrap(Pointer), unwrap(Indices), -                                           unwrap(Indices) + NumIndices, Name)); +  ArrayRef<Value *> IdxList(unwrap(Indices), NumIndices); +  return wrap(unwrap(B)->CreateInBoundsGEP(unwrap(Pointer), IdxList, Name));  }  LLVMValueRef LLVMBuildStructGEP(LLVMBuilderRef B, LLVMValueRef Pointer, | 

