diff options
| author | Jay Foad <jay.foad@gmail.com> | 2011-06-22 09:24:39 +0000 |
|---|---|---|
| committer | Jay Foad <jay.foad@gmail.com> | 2011-06-22 09:24:39 +0000 |
| commit | 83be361b8a995f1b234ac5728f4d120488a9c886 (patch) | |
| tree | 6789e7a4e8b7bf396f5b1792d5099dc5ff0eb98d /llvm/lib/VMCore/Core.cpp | |
| parent | b8a8bed30117db3f80076edc66cb032dc20d2949 (diff) | |
| download | bcm5719-llvm-83be361b8a995f1b234ac5728f4d120488a9c886.tar.gz bcm5719-llvm-83be361b8a995f1b234ac5728f4d120488a9c886.zip | |
Replace the existing forms of ConstantArray::get() with a single form
that takes an ArrayRef.
llvm-svn: 133615
Diffstat (limited to 'llvm/lib/VMCore/Core.cpp')
| -rw-r--r-- | llvm/lib/VMCore/Core.cpp | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/llvm/lib/VMCore/Core.cpp b/llvm/lib/VMCore/Core.cpp index 16ccc7b8938..bdd988e7b08 100644 --- a/llvm/lib/VMCore/Core.cpp +++ b/llvm/lib/VMCore/Core.cpp @@ -625,9 +625,8 @@ LLVMValueRef LLVMConstString(const char *Str, unsigned Length, } LLVMValueRef LLVMConstArray(LLVMTypeRef ElementTy, LLVMValueRef *ConstantVals, unsigned Length) { - return wrap(ConstantArray::get(ArrayType::get(unwrap(ElementTy), Length), - unwrap<Constant>(ConstantVals, Length), - Length)); + ArrayRef<Constant*> V(unwrap<Constant>(ConstantVals, Length), Length); + return wrap(ConstantArray::get(ArrayType::get(unwrap(ElementTy), Length), V)); } LLVMValueRef LLVMConstStruct(LLVMValueRef *ConstantVals, unsigned Count, LLVMBool Packed) { |

