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

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

No files matched your search

+1 -2
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);