From: Davide Italiano Date: Thu, 9 Mar 2017 23:48:58 +0000 (+0000) Subject: [Unittests] Fix a build failure with clang 3.8. NFCI. X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=96acf92927352f99d8faa7a5223109bf957904da;p=llvm [Unittests] Fix a build failure with clang 3.8. NFCI. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@297423 91177308-0d34-0410-b5e6-96231b3b80d8 --- diff --git a/unittests/ADT/STLExtrasTest.cpp b/unittests/ADT/STLExtrasTest.cpp index f17d24f36b2..6c162de6d37 100644 --- a/unittests/ADT/STLExtrasTest.cpp +++ b/unittests/ADT/STLExtrasTest.cpp @@ -69,7 +69,7 @@ TEST(STLExtrasTest, EnumerateLValue) { // Test an empty range. IntResults.clear(); - const std::vector baz; + const std::vector baz{}; for (auto X : llvm::enumerate(baz)) { IntResults.emplace_back(X.Index, X.Value); }