r216457 - Some versions of MSVC do not support initializer list construction of vectors, so this fixes a broken build from r216385.
Aaron Ballman
aaron at aaronballman.com
Tue Aug 26 07:17:26 PDT 2014
Author: aaronballman
Date: Tue Aug 26 09:17:25 2014
New Revision: 216457
URL: http://llvm.org/viewvc/llvm-project?rev=216457&view=rev
Log:
Some versions of MSVC do not support initializer list construction of vectors, so this fixes a broken build from r216385.
Modified:
cfe/trunk/unittests/AST/ASTVectorTest.cpp
Modified: cfe/trunk/unittests/AST/ASTVectorTest.cpp
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/unittests/AST/ASTVectorTest.cpp?rev=216457&r1=216456&r2=216457&view=diff
==============================================================================
--- cfe/trunk/unittests/AST/ASTVectorTest.cpp (original)
+++ cfe/trunk/unittests/AST/ASTVectorTest.cpp Tue Aug 26 09:17:25 2014
@@ -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());
More information about the cfe-commits
mailing list