mirror of
https://github.com/carbon-language/carbon-lang.git
synced 2026-11-29 09:41:19 +00:00
PR9214: Convert ConstantExpr::getWithOperands() to use ArrayRef.
llvm-svn: 129439
This commit is contained in:
1 parent
43dec14079
commit
5c984e563b
3 files changed
+7
-11
No files matched your search
@@ -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);
|
||||
|
||||
Reference in new issue
Block a user