summaryrefslogtreecommitdiffstats
path: root/llvm/unittests
diff options
context:
space:
mode:
authorDavide Italiano <davide@freebsd.org>2017-03-09 23:48:58 +0000
committerDavide Italiano <davide@freebsd.org>2017-03-09 23:48:58 +0000
commite42462da35a963053d1d9ad096234d3ddb35cf11 (patch)
tree7a46ba2ffec14880f4a7edd1818830f3e908c178 /llvm/unittests
parentaa995c98f4c36e7d0a4f7f302c330e8c655c34ea (diff)
downloadbcm5719-llvm-e42462da35a963053d1d9ad096234d3ddb35cf11.tar.gz
bcm5719-llvm-e42462da35a963053d1d9ad096234d3ddb35cf11.zip
[Unittests] Fix a build failure with clang 3.8. NFCI.
llvm-svn: 297423
Diffstat (limited to 'llvm/unittests')
-rw-r--r--llvm/unittests/ADT/STLExtrasTest.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/llvm/unittests/ADT/STLExtrasTest.cpp b/llvm/unittests/ADT/STLExtrasTest.cpp
index f17d24f36b2..6c162de6d37 100644
--- a/llvm/unittests/ADT/STLExtrasTest.cpp
+++ b/llvm/unittests/ADT/STLExtrasTest.cpp
@@ -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);
}
OpenPOWER on IntegriCloud