From cc3b00cb6007fd230fd0642c57cd61b68beff826 Mon Sep 17 00:00:00 2001 From: Serge Guelton Date: Sun, 20 Jan 2019 23:06:45 +0000 Subject: [PATCH] Tentative fix for r351701 and gcc 6.2 build on ubuntu llvm-svn: 351705 --- lib/MC/MCParser/AsmParser.cpp | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) 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;