[clang-tools-extra] r342970 - [clangd] Fix some buildbots after r342965

Kirill Bobyrev via cfe-commits cfe-commits at lists.llvm.org
Tue Sep 25 06:14:11 PDT 2018


Author: omtcyfz
Date: Tue Sep 25 06:14:11 2018
New Revision: 342970

URL: http://llvm.org/viewvc/llvm-project?rev=342970&view=rev
Log:
[clangd] Fix some buildbots after r342965

Some compilers fail to parse struct default member initializer.

Modified:
    clang-tools-extra/trunk/clangd/index/dex/PostingList.h

Modified: clang-tools-extra/trunk/clangd/index/dex/PostingList.h
URL: http://llvm.org/viewvc/llvm-project/clang-tools-extra/trunk/clangd/index/dex/PostingList.h?rev=342970&r1=342969&r2=342970&view=diff
==============================================================================
--- clang-tools-extra/trunk/clangd/index/dex/PostingList.h (original)
+++ clang-tools-extra/trunk/clangd/index/dex/PostingList.h Tue Sep 25 06:14:11 2018
@@ -50,7 +50,7 @@ struct Chunk {
   /// The first element of decompressed Chunk.
   DocID Head;
   /// VByte-encoded deltas.
-  std::array<uint8_t, PayloadSize> Payload = std::array<uint8_t, PayloadSize>();
+  std::array<uint8_t, PayloadSize> Payload;
 };
 static_assert(sizeof(Chunk) == 32, "Chunk should take 32 bytes of memory.");
 




More information about the cfe-commits mailing list