From 52d777fc4ffecbd0cbfa4cd969759a73b37d9fc0 Mon Sep 17 00:00:00 2001 From: Serge Guelton Date: Mon, 21 Jan 2019 07:44:52 +0000 Subject: [PATCH] Tentative fix for r351701 and gcc 6.2 build on ubuntu llvm-svn: 351728 --- lld/ELF/SyntheticSections.h | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/lld/ELF/SyntheticSections.h b/lld/ELF/SyntheticSections.h index 1efc44d85898..90e1e12d9488 100644 --- a/lld/ELF/SyntheticSections.h +++ b/lld/ELF/SyntheticSections.h @@ -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