[clang-tools-extra] r343793 - [clangd] Fix ambiguous constructor in DexTest

Sam McCall via cfe-commits cfe-commits at lists.llvm.org
Thu Oct 4 09:05:23 PDT 2018


Author: sammccall
Date: Thu Oct  4 09:05:22 2018
New Revision: 343793

URL: http://llvm.org/viewvc/llvm-project?rev=343793&view=rev
Log:
[clangd] Fix ambiguous constructor in DexTest

Modified:
    clang-tools-extra/trunk/unittests/clangd/DexTests.cpp

Modified: clang-tools-extra/trunk/unittests/clangd/DexTests.cpp
URL: http://llvm.org/viewvc/llvm-project/clang-tools-extra/trunk/unittests/clangd/DexTests.cpp?rev=343793&r1=343792&r2=343793&view=diff
==============================================================================
--- clang-tools-extra/trunk/unittests/clangd/DexTests.cpp (original)
+++ clang-tools-extra/trunk/unittests/clangd/DexTests.cpp Thu Oct  4 09:05:22 2018
@@ -111,8 +111,8 @@ TEST(DexIterators, AndThreeLists) {
 
 TEST(DexIterators, AndEmpty) {
   Corpus C{10000};
-  const PostingList L1({1});
-  const PostingList L2({2});
+  const PostingList L1{1};
+  const PostingList L2{2};
   // These iterators are empty, but the optimizer can't tell.
   auto Empty1 = C.intersect(L1.iterator(), L2.iterator());
   auto Empty2 = C.intersect(L1.iterator(), L2.iterator());




More information about the cfe-commits mailing list