summaryrefslogtreecommitdiffstats
path: root/llvm/lib/AsmParser
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/AsmParser
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/AsmParser')
-rw-r--r--llvm/lib/AsmParser/LLParser.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/llvm/lib/AsmParser/LLParser.cpp b/llvm/lib/AsmParser/LLParser.cpp
index 170ec44391f..d9858514be0 100644
--- a/llvm/lib/AsmParser/LLParser.cpp
+++ b/llvm/lib/AsmParser/LLParser.cpp
@@ -2062,7 +2062,7 @@ bool LLParser::ParseValID(ValID &ID, PerFunctionState *PFS) {
" is not of type '" + getTypeString(Elts[0]->getType()));
}
- ID.ConstantVal = ConstantArray::get(ATy, Elts.data(), Elts.size());
+ ID.ConstantVal = ConstantArray::get(ATy, Elts);
ID.Kind = ValID::t_Constant;
return false;
}
OpenPOWER on IntegriCloud