From: Serge Guelton Date: Sun, 20 Jan 2019 23:06:45 +0000 (+0000) Subject: Tentative fix for r351701 and gcc 6.2 build on ubuntu X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=4cb18de51a4768f96cc2f1c67bd77c61c360fd84;p=llvm Tentative fix for r351701 and gcc 6.2 build on ubuntu git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@351705 91177308-0d34-0410-b5e6-96231b3b80d8 --- diff --git a/lib/MC/MCParser/AsmParser.cpp b/lib/MC/MCParser/AsmParser.cpp index faa29f3f63c..6c311c13836 100644 --- a/lib/MC/MCParser/AsmParser.cpp +++ b/lib/MC/MCParser/AsmParser.cpp @@ -158,9 +158,10 @@ private: /// The values from the last parsed cpp hash file line comment if any. struct CppHashInfoTy { StringRef Filename; - int64_t LineNumber = 0; + int64_t LineNumber; SMLoc Loc; - unsigned Buf = 0; + unsigned Buf; + CppHashInfoTy() : Filename(), LineNumber(0), Loc(), Buf(0) {} }; CppHashInfoTy CppHashInfo;