Author: Jonas Devlieghere Date: 2022-02-16T10:38:05-08:00 New Revision: 046b772c78a8f6a9728191eda7dae9eb0c766f1b
URL: https://github.com/llvm/llvm-project/commit/046b772c78a8f6a9728191eda7dae9eb0c766f1b DIFF: https://github.com/llvm/llvm-project/commit/046b772c78a8f6a9728191eda7dae9eb0c766f1b.diff LOG: [lldb] Default initialize DWARFDebugMacroHeader Default initialize the DWARFDebugMacroHeader to avoid returning a header with uninitialized variables from DWARFDebugMacroHeader::ParseHeader. Added: Modified: lldb/source/Plugins/SymbolFile/DWARF/DWARFDebugMacro.h Removed: ################################################################################ diff --git a/lldb/source/Plugins/SymbolFile/DWARF/DWARFDebugMacro.h b/lldb/source/Plugins/SymbolFile/DWARF/DWARFDebugMacro.h index 5c0338e950eb8..cbf762458331b 100644 --- a/lldb/source/Plugins/SymbolFile/DWARF/DWARFDebugMacro.h +++ b/lldb/source/Plugins/SymbolFile/DWARF/DWARFDebugMacro.h @@ -43,9 +43,9 @@ class DWARFDebugMacroHeader { SkipOperandTable(const lldb_private::DWARFDataExtractor &debug_macro_data, lldb::offset_t *offset); - uint16_t m_version; - bool m_offset_is_64_bit; - uint64_t m_debug_line_offset; + uint16_t m_version = 0; + bool m_offset_is_64_bit = false; + uint64_t m_debug_line_offset = 0; }; class DWARFDebugMacroEntry { _______________________________________________ lldb-commits mailing list lldb-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/lldb-commits