X-Git-Url: http://plrg.eecs.uci.edu/git/?p=oota-llvm.git;a=blobdiff_plain;f=lib%2FIR%2FCore.cpp;h=7fe7beb40c6b47fe3913de269045d1e2b14cc849;hp=00160aca16e0265f94e16e3a4bffd42d3ce8a832;hb=7b0e5b8edc7b41915d7851b6d7de987b03cbdf9c;hpb=7368f2145aff1c1f9faa24c307b3fe29b94d184c diff --git a/lib/IR/Core.cpp b/lib/IR/Core.cpp index 00160aca16e..7fe7beb40c6 100644 --- a/lib/IR/Core.cpp +++ b/lib/IR/Core.cpp @@ -2518,7 +2518,7 @@ LLVMValueRef LLVMBuildInBoundsGEP(LLVMBuilderRef B, LLVMValueRef Pointer, LLVMValueRef LLVMBuildStructGEP(LLVMBuilderRef B, LLVMValueRef Pointer, unsigned Idx, const char *Name) { - return wrap(unwrap(B)->CreateStructGEP(unwrap(Pointer), Idx, Name)); + return wrap(unwrap(B)->CreateStructGEP(nullptr, unwrap(Pointer), Idx, Name)); } LLVMValueRef LLVMBuildGlobalString(LLVMBuilderRef B, const char *Str,