Tentative fix for r351701 and gcc 6.2 build on ubuntu
authorSerge Guelton <sguelton@quarkslab.com>
Mon, 21 Jan 2019 07:44:52 +0000 (07:44 +0000)
committerSerge Guelton <sguelton@quarkslab.com>
Mon, 21 Jan 2019 07:44:52 +0000 (07:44 +0000)
llvm-svn: 351728

lld/ELF/SyntheticSections.h

index 1efc44d..90e1e12 100644 (file)
@@ -316,8 +316,9 @@ private:
     size_t StartIndex = 0;
 
     struct PageBlock {
-      size_t FirstIndex = 0;
-      size_t Count = 0;
+      size_t FirstIndex;
+      size_t Count;
+      PageBlock() : FirstIndex(0), Count(0) {}
     };
 
     // Map output sections referenced by MIPS GOT relocations