]> granicus.if.org Git - llvm/commitdiff
Tentative fix for r351701 and gcc 6.2 build on ubuntu
authorSerge Guelton <sguelton@quarkslab.com>
Sun, 20 Jan 2019 23:06:45 +0000 (23:06 +0000)
committerSerge Guelton <sguelton@quarkslab.com>
Sun, 20 Jan 2019 23:06:45 +0000 (23:06 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@351705 91177308-0d34-0410-b5e6-96231b3b80d8

lib/MC/MCParser/AsmParser.cpp

index faa29f3f63c9f25b4fa541dd6ddf508713cc519d..6c311c138369b2693af9884cde8e130ec3320c1c 100644 (file)
@@ -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;