diff --git a/lldb/source/Plugins/SymbolFile/DWARF/DWARFAbbreviationDeclaration.h b/lldb/source/Plugins/SymbolFile/DWARF/DWARFAbbreviationDeclaration.h --- a/lldb/source/Plugins/SymbolFile/DWARF/DWARFAbbreviationDeclaration.h +++ b/lldb/source/Plugins/SymbolFile/DWARF/DWARFAbbreviationDeclaration.h @@ -58,7 +58,7 @@ dw_uleb128_t m_code = InvalidCode; dw_tag_t m_tag = llvm::dwarf::DW_TAG_null; uint8_t m_has_children = 0; - DWARFAttribute::collection m_attributes; + llvm::SmallVector m_attributes; }; #endif // LLDB_SOURCE_PLUGINS_SYMBOLFILE_DWARF_DWARFABBREVIATIONDECLARATION_H diff --git a/lldb/source/Plugins/SymbolFile/DWARF/DWARFDebugAbbrev.cpp b/lldb/source/Plugins/SymbolFile/DWARF/DWARFDebugAbbrev.cpp --- a/lldb/source/Plugins/SymbolFile/DWARF/DWARFDebugAbbrev.cpp +++ b/lldb/source/Plugins/SymbolFile/DWARF/DWARFDebugAbbrev.cpp @@ -112,7 +112,7 @@ if (error) return error; - m_abbrevCollMap[initial_cu_offset] = abbrevDeclSet; + m_abbrevCollMap[initial_cu_offset] = std::move(abbrevDeclSet); } m_prev_abbr_offset_pos = m_abbrevCollMap.end(); return llvm::ErrorSuccess();