From a4c4b520b5e3520854eda0a91e8336ab698b0e6c Mon Sep 17 00:00:00 2001 From: Kazu Hirata Date: Sat, 3 May 2025 08:54:47 -0700 Subject: [PATCH] [DebugInfo] Use default member initialization in InlineInfo (NFC) --- llvm/include/llvm/DebugInfo/GSYM/InlineInfo.h | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/llvm/include/llvm/DebugInfo/GSYM/InlineInfo.h b/llvm/include/llvm/DebugInfo/GSYM/InlineInfo.h index 616f35d82e1c7..8957d4176ce11 100644 --- a/llvm/include/llvm/DebugInfo/GSYM/InlineInfo.h +++ b/llvm/include/llvm/DebugInfo/GSYM/InlineInfo.h @@ -58,12 +58,12 @@ class GsymReader; /// struct InlineInfo { - uint32_t Name; ///< String table offset in the string table. - uint32_t CallFile; ///< 1 based file index in the file table. - uint32_t CallLine; ///< Source line number. + uint32_t Name = 0; ///< String table offset in the string table. + uint32_t CallFile = 0; ///< 1 based file index in the file table. + uint32_t CallLine = 0; ///< Source line number. AddressRanges Ranges; std::vector Children; - InlineInfo() : Name(0), CallFile(0), CallLine(0) {} + InlineInfo() = default; void clear() { Name = 0; CallFile = 0;