diff options
author | Jay Foad <jay.foad@gmail.com> | 2011-04-13 13:46:01 +0000 |
---|---|---|
committer | Jay Foad <jay.foad@gmail.com> | 2011-04-13 13:46:01 +0000 |
commit | b81e457eb02b67a9ef5fb9edc1604b177acb821d (patch) | |
tree | 3e088b09aec3aa973c422f5d397abe34abb51045 /lib/Bitcode/Reader | |
parent | d61895a4beca5b54d01c1899c005a22261b3bcff (diff) | |
download | external_llvm-b81e457eb02b67a9ef5fb9edc1604b177acb821d.zip external_llvm-b81e457eb02b67a9ef5fb9edc1604b177acb821d.tar.gz external_llvm-b81e457eb02b67a9ef5fb9edc1604b177acb821d.tar.bz2 |
PR9214: Convert ConstantExpr::getWithOperands() to use ArrayRef.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@129439 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Bitcode/Reader')
-rw-r--r-- | lib/Bitcode/Reader/BitcodeReader.cpp | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/lib/Bitcode/Reader/BitcodeReader.cpp b/lib/Bitcode/Reader/BitcodeReader.cpp index 8223f76..d42fb92 100644 --- a/lib/Bitcode/Reader/BitcodeReader.cpp +++ b/lib/Bitcode/Reader/BitcodeReader.cpp @@ -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); |