summaryrefslogtreecommitdiffstats
path: root/clang
diff options
context:
space:
mode:
authorAaron Ballman <aaron@aaronballman.com>2014-08-26 14:17:25 +0000
committerAaron Ballman <aaron@aaronballman.com>2014-08-26 14:17:25 +0000
commitcc7f4aa2a702d0947e2f9d26680902b6f440685f (patch)
tree077e65b43fc57d300b9fc9707350b1b138653f8f /clang
parentc0a596eabd5ec1516555b9848842c22ed5ec42cf (diff)
downloadbcm5719-llvm-cc7f4aa2a702d0947e2f9d26680902b6f440685f.tar.gz
bcm5719-llvm-cc7f4aa2a702d0947e2f9d26680902b6f440685f.zip
Some versions of MSVC do not support initializer list construction of vectors, so this fixes a broken build from r216385.
llvm-svn: 216457
Diffstat (limited to 'clang')
-rw-r--r--clang/unittests/AST/ASTVectorTest.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/clang/unittests/AST/ASTVectorTest.cpp b/clang/unittests/AST/ASTVectorTest.cpp
index 3a8e8e89b6e..23c52be5b12 100644
--- a/clang/unittests/AST/ASTVectorTest.cpp
+++ b/clang/unittests/AST/ASTVectorTest.cpp
@@ -72,7 +72,8 @@ TEST_F(ASTVectorTest, InsertEmpty) {
ASTVector<double> V;
// Ensure no pointer overflow when inserting empty range
- std::vector<int> IntVec{0, 1, 2, 3};
+ int Values[] = { 0, 1, 2, 3 };
+ std::vector<int> IntVec(Values, Values + 4);
auto I = V.insert(Ctxt, V.begin(), IntVec.begin(), IntVec.begin());
ASSERT_EQ(V.begin(), I);
ASSERT_TRUE(V.empty());
OpenPOWER on IntegriCloud