[llvm] c0f9d7b - [MCParser] Modernize CppHashInfoTy (NFC)
Kazu Hirata via llvm-commits
llvm-commits at lists.llvm.org
Sat Jun 10 09:02:45 PDT 2023
Author: Kazu Hirata
Date: 2023-06-10T09:02:26-07:00
New Revision: c0f9d7b0e6199ca3bde5a6d0036a8ada0bb6253b
URL: https://github.com/llvm/llvm-project/commit/c0f9d7b0e6199ca3bde5a6d0036a8ada0bb6253b
DIFF: https://github.com/llvm/llvm-project/commit/c0f9d7b0e6199ca3bde5a6d0036a8ada0bb6253b.diff
LOG: [MCParser] Modernize CppHashInfoTy (NFC)
Added:
Modified:
llvm/lib/MC/MCParser/MasmParser.cpp
Removed:
################################################################################
diff --git a/llvm/lib/MC/MCParser/MasmParser.cpp b/llvm/lib/MC/MCParser/MasmParser.cpp
index d522b77c25874..1502d70fddfb0 100644
--- a/llvm/lib/MC/MCParser/MasmParser.cpp
+++ b/llvm/lib/MC/MCParser/MasmParser.cpp
@@ -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;
More information about the llvm-commits
mailing list