diff options
author | Chris Lattner <sabre@nondot.org> | 2011-02-14 07:55:32 +0000 |
---|---|---|
committer | Chris Lattner <sabre@nondot.org> | 2011-02-14 07:55:32 +0000 |
commit | 283c8caccd093f8e1d4f0bdd01ac240b4edbd20a (patch) | |
tree | bf56193b8f9bd39bcb2ffd3251e27f67d7953a2e /lib/AsmParser/LLParser.cpp | |
parent | 2b9bc422a5e6840f5b925316bc06d5943deb610a (diff) |
Switch ConstantVector::get to use ArrayRef instead of a pointer+size
idiom. Change various clients to simplify their code.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@125487 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/AsmParser/LLParser.cpp')
-rw-r--r-- | lib/AsmParser/LLParser.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/AsmParser/LLParser.cpp b/lib/AsmParser/LLParser.cpp index cb4ddcba72..cdfacbebbf 100644 --- a/lib/AsmParser/LLParser.cpp +++ b/lib/AsmParser/LLParser.cpp @@ -2079,7 +2079,7 @@ bool LLParser::ParseValID(ValID &ID, PerFunctionState *PFS) { "vector element #" + Twine(i) + " is not of type '" + Elts[0]->getType()->getDescription()); - ID.ConstantVal = ConstantVector::get(Elts.data(), Elts.size()); + ID.ConstantVal = ConstantVector::get(Elts); ID.Kind = ValID::t_Constant; return false; } |