mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-09-12 01:25:10 +00:00
Return ConstantVector to 2.5 API.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@77366 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
@@ -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);
|
||||
}
|
||||
|
Reference in New Issue
Block a user