[llvm] r297423 - [Unittests] Fix a build failure with clang 3.8. NFCI.
Davide Italiano via llvm-commits
llvm-commits at lists.llvm.org
Thu Mar 9 15:48:58 PST 2017
Author: davide
Date: Thu Mar 9 17:48:58 2017
New Revision: 297423
URL: http://llvm.org/viewvc/llvm-project?rev=297423&view=rev
Log:
[Unittests] Fix a build failure with clang 3.8. NFCI.
Modified:
llvm/trunk/unittests/ADT/STLExtrasTest.cpp
Modified: llvm/trunk/unittests/ADT/STLExtrasTest.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/unittests/ADT/STLExtrasTest.cpp?rev=297423&r1=297422&r2=297423&view=diff
==============================================================================
--- llvm/trunk/unittests/ADT/STLExtrasTest.cpp (original)
+++ llvm/trunk/unittests/ADT/STLExtrasTest.cpp Thu Mar 9 17:48:58 2017
@@ -69,7 +69,7 @@ TEST(STLExtrasTest, EnumerateLValue) {
// Test an empty range.
IntResults.clear();
- const std::vector<int> baz;
+ const std::vector<int> baz{};
for (auto X : llvm::enumerate(baz)) {
IntResults.emplace_back(X.Index, X.Value);
}
More information about the llvm-commits
mailing list