aboutsummaryrefslogtreecommitdiffstats
path: root/lib/VMCore/Core.cpp
diff options
context:
space:
mode:
authorOwen Anderson <resistor@mac.com>2009-07-28 21:19:26 +0000
committerOwen Anderson <resistor@mac.com>2009-07-28 21:19:26 +0000
commit2f422e06e096ae765ced5d4c67ac063c3e216424 (patch)
treeb00e71c30dafeea2c63c1b512c0d858e621870fa /lib/VMCore/Core.cpp
parent5c03715743f38b03b73c74b9e7c7b2faa2d28977 (diff)
downloadexternal_llvm-2f422e06e096ae765ced5d4c67ac063c3e216424.zip
external_llvm-2f422e06e096ae765ced5d4c67ac063c3e216424.tar.gz
external_llvm-2f422e06e096ae765ced5d4c67ac063c3e216424.tar.bz2
Return ConstantVector to 2.5 API.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@77366 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/VMCore/Core.cpp')
-rw-r--r--lib/VMCore/Core.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/VMCore/Core.cpp b/lib/VMCore/Core.cpp
index a262f40..d1e6fb2 100644
--- a/lib/VMCore/Core.cpp
+++ b/lib/VMCore/Core.cpp
@@ -421,7 +421,7 @@ LLVMValueRef LLVMConstStruct(LLVMValueRef *ConstantVals, unsigned Count,
}
LLVMValueRef LLVMConstVector(LLVMValueRef *ScalarConstantVals, unsigned Size) {
- return wrap(getGlobalContext().getConstantVector(
+ return wrap(ConstantVector::get(
unwrap<Constant>(ScalarConstantVals, Size), Size));
}