[llvm] [DebugInfo] Use default member initialization in InlineInfo (NFC) (PR #138410)
via llvm-commits
llvm-commits at lists.llvm.org
Sat May 3 08:59:18 PDT 2025
llvmbot wrote:
<!--LLVM PR SUMMARY COMMENT-->
@llvm/pr-subscribers-debuginfo
Author: Kazu Hirata (kazutakahirata)
<details>
<summary>Changes</summary>
---
Full diff: https://github.com/llvm/llvm-project/pull/138410.diff
1 Files Affected:
- (modified) llvm/include/llvm/DebugInfo/GSYM/InlineInfo.h (+4-4)
``````````diff
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;
``````````
</details>
https://github.com/llvm/llvm-project/pull/138410
More information about the llvm-commits
mailing list