Revert "[MCParser] Modernize CppHashInfoTy (NFC)"
authorKazu Hirata <kazu@google.com>
Sat, 10 Jun 2023 20:34:30 +0000 (13:34 -0700)
committerKazu Hirata <kazu@google.com>
Sat, 10 Jun 2023 20:34:31 +0000 (13:34 -0700)
This reverts commit c0f9d7b0e6199ca3bde5a6d0036a8ada0bb6253b.

A build error has been reported with gcc-7.

This patch fixes:

https://github.com/llvm/llvm-project/issues/63240

llvm/lib/MC/MCParser/MasmParser.cpp

index 1502d70..d522b77 100644 (file)
@@ -435,10 +435,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;
-    CppHashInfoTy() = default;
+    unsigned Buf;
+    CppHashInfoTy() : LineNumber(0), Buf(0) {}
   };
   CppHashInfoTy CppHashInfo;