PR9214: Convert ConstantExpr::getWithOperands() to use ArrayRef.

llvm-svn: 129439
This commit is contained in:
Jay Foad
2011-04-13 13:46:01 +00:00
parent 43dec14079
commit 5c984e563b
3 changed files with 7 additions and 11 deletions

View File

@@ -301,8 +301,7 @@ void BitcodeReaderValueList::ResolveConstantForwardRefs() {
NewC = ConstantVector::get(NewOps);
} else {
assert(isa<ConstantExpr>(UserC) && "Must be a ConstantExpr.");
NewC = cast<ConstantExpr>(UserC)->getWithOperands(&NewOps[0],
NewOps.size());
NewC = cast<ConstantExpr>(UserC)->getWithOperands(NewOps);
}
UserC->replaceAllUsesWith(NewC);