Skip to content

Commit

Permalink
[MCParser] Modernize CppHashInfoTy (NFC)
Browse files Browse the repository at this point in the history
  • Loading branch information
kazutakahirata committed Jun 10, 2023
1 parent c963892 commit c0f9d7b
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions llvm/lib/MC/MCParser/MasmParser.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -435,10 +435,10 @@ class MasmParser : public MCAsmParser {
/// The values from the last parsed cpp hash file line comment if any.
struct CppHashInfoTy {
StringRef Filename;
int64_t LineNumber;
int64_t LineNumber = 0;
SMLoc Loc;
unsigned Buf;
CppHashInfoTy() : LineNumber(0), Buf(0) {}
unsigned Buf = 0;
CppHashInfoTy() = default;
};
CppHashInfoTy CppHashInfo;

Expand Down

0 comments on commit c0f9d7b

Please sign in to comment.