Skip to content

Commit 56e01c9

Browse files
[DebugInfo] Use default member initialization in InlineInfo (NFC) (#138410)
1 parent d1e38ea commit 56e01c9

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

llvm/include/llvm/DebugInfo/GSYM/InlineInfo.h

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -58,12 +58,12 @@ class GsymReader;
5858
///
5959
struct InlineInfo {
6060

61-
uint32_t Name; ///< String table offset in the string table.
62-
uint32_t CallFile; ///< 1 based file index in the file table.
63-
uint32_t CallLine; ///< Source line number.
61+
uint32_t Name = 0; ///< String table offset in the string table.
62+
uint32_t CallFile = 0; ///< 1 based file index in the file table.
63+
uint32_t CallLine = 0; ///< Source line number.
6464
AddressRanges Ranges;
6565
std::vector<InlineInfo> Children;
66-
InlineInfo() : Name(0), CallFile(0), CallLine(0) {}
66+
InlineInfo() = default;
6767
void clear() {
6868
Name = 0;
6969
CallFile = 0;

0 commit comments

Comments
 (0)