[llvm] r351705 - Tentative fix for r351701 and gcc 6.2 build on ubuntu
Serge Guelton via llvm-commits
llvm-commits at lists.llvm.org
Sun Jan 20 15:06:45 PST 2019
Author: serge_sans_paille
Date: Sun Jan 20 15:06:45 2019
New Revision: 351705
URL: http://llvm.org/viewvc/llvm-project?rev=351705&view=rev
Log:
Tentative fix for r351701 and gcc 6.2 build on ubuntu
Modified:
llvm/trunk/lib/MC/MCParser/AsmParser.cpp
Modified: llvm/trunk/lib/MC/MCParser/AsmParser.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/MC/MCParser/AsmParser.cpp?rev=351705&r1=351704&r2=351705&view=diff
==============================================================================
--- llvm/trunk/lib/MC/MCParser/AsmParser.cpp (original)
+++ llvm/trunk/lib/MC/MCParser/AsmParser.cpp Sun Jan 20 15:06:45 2019
@@ -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;
More information about the llvm-commits
mailing list