diff options
Diffstat (limited to 'llvm/lib/VMCore/Core.cpp')
-rw-r--r-- | llvm/lib/VMCore/Core.cpp | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/llvm/lib/VMCore/Core.cpp b/llvm/lib/VMCore/Core.cpp index 90f08c8e482..12f7c3223bc 100644 --- a/llvm/lib/VMCore/Core.cpp +++ b/llvm/lib/VMCore/Core.cpp @@ -416,8 +416,7 @@ LLVMValueRef LLVMConstArray(LLVMTypeRef ElementTy, LLVMValueRef LLVMConstStruct(LLVMValueRef *ConstantVals, unsigned Count, int Packed) { - return wrap(getGlobalContext().getConstantStruct( - unwrap<Constant>(ConstantVals, Count), + return wrap(ConstantStruct::get(unwrap<Constant>(ConstantVals, Count), Count, Packed != 0)); } |