summaryrefslogtreecommitdiffstats
path: root/llvm/lib/Bitcode
diff options
context:
space:
mode:
authorJay Foad <jay.foad@gmail.com>2011-06-22 09:24:39 +0000
committerJay Foad <jay.foad@gmail.com>2011-06-22 09:24:39 +0000
commit83be361b8a995f1b234ac5728f4d120488a9c886 (patch)
tree6789e7a4e8b7bf396f5b1792d5099dc5ff0eb98d /llvm/lib/Bitcode
parentb8a8bed30117db3f80076edc66cb032dc20d2949 (diff)
downloadbcm5719-llvm-83be361b8a995f1b234ac5728f4d120488a9c886.tar.gz
bcm5719-llvm-83be361b8a995f1b234ac5728f4d120488a9c886.zip
Replace the existing forms of ConstantArray::get() with a single form
that takes an ArrayRef. llvm-svn: 133615
Diffstat (limited to 'llvm/lib/Bitcode')
-rw-r--r--llvm/lib/Bitcode/Reader/BitcodeReader.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/llvm/lib/Bitcode/Reader/BitcodeReader.cpp b/llvm/lib/Bitcode/Reader/BitcodeReader.cpp
index ff67bc92fe1..963791f5d6c 100644
--- a/llvm/lib/Bitcode/Reader/BitcodeReader.cpp
+++ b/llvm/lib/Bitcode/Reader/BitcodeReader.cpp
@@ -292,7 +292,7 @@ void BitcodeReaderValueList::ResolveConstantForwardRefs() {
// Make the new constant.
Constant *NewC;
if (ConstantArray *UserCA = dyn_cast<ConstantArray>(UserC)) {
- NewC = ConstantArray::get(UserCA->getType(), &NewOps[0], NewOps.size());
+ NewC = ConstantArray::get(UserCA->getType(), NewOps);
} else if (ConstantStruct *UserCS = dyn_cast<ConstantStruct>(UserC)) {
NewC = ConstantStruct::get(UserCS->getType(), NewOps);
} else if (isa<ConstantVector>(UserC)) {
OpenPOWER on IntegriCloud