diff options
author | Owen Anderson <resistor@mac.com> | 2009-07-28 21:19:26 +0000 |
---|---|---|
committer | Owen Anderson <resistor@mac.com> | 2009-07-28 21:19:26 +0000 |
commit | af7ec975870f92245f1f1484ac80a1e2db6a0afa (patch) | |
tree | b00e71c30dafeea2c63c1b512c0d858e621870fa /lib/Bitcode/Reader/BitcodeReader.cpp | |
parent | e7c329bf4b48ba3a4539183dc2d0804db6f4042a (diff) |
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/Bitcode/Reader/BitcodeReader.cpp')
-rw-r--r-- | lib/Bitcode/Reader/BitcodeReader.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/Bitcode/Reader/BitcodeReader.cpp b/lib/Bitcode/Reader/BitcodeReader.cpp index 117a8758d0..ed2e303870 100644 --- a/lib/Bitcode/Reader/BitcodeReader.cpp +++ b/lib/Bitcode/Reader/BitcodeReader.cpp @@ -294,7 +294,7 @@ void BitcodeReaderValueList::ResolveConstantForwardRefs() { NewC = ConstantStruct::get(&NewOps[0], NewOps.size(), UserCS->getType()->isPacked()); } else if (isa<ConstantVector>(UserC)) { - NewC = Context.getConstantVector(&NewOps[0], NewOps.size()); + NewC = ConstantVector::get(&NewOps[0], NewOps.size()); } else { assert(isa<ConstantExpr>(UserC) && "Must be a ConstantExpr."); NewC = cast<ConstantExpr>(UserC)->getWithOperands(&NewOps[0], @@ -935,7 +935,7 @@ bool BitcodeReader::ParseConstants() { const Type *EltTy = VTy->getElementType(); for (unsigned i = 0; i != Size; ++i) Elts.push_back(ValueList.getConstantFwdRef(Record[i], EltTy)); - V = Context.getConstantVector(Elts); + V = ConstantVector::get(Elts); } else { V = Context.getUndef(CurTy); } |