[llvm] [DebugInfo] Use default member initialization in InlineInfo (NFC) (PR #138410)
Kazu Hirata via llvm-commits
llvm-commits at lists.llvm.org
Sat May 3 08:58:47 PDT 2025
https://github.com/kazutakahirata created https://github.com/llvm/llvm-project/pull/138410
None
>From a4c4b520b5e3520854eda0a91e8336ab698b0e6c Mon Sep 17 00:00:00 2001
From: Kazu Hirata <kazu at google.com>
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<InlineInfo> Children;
- InlineInfo() : Name(0), CallFile(0), CallLine(0) {}
+ InlineInfo() = default;
void clear() {
Name = 0;
CallFile = 0;
More information about the llvm-commits
mailing list