Skip to content

Commit

Permalink
ObjectFile: remove extraneous shadowed variable (NFCI)
Browse files Browse the repository at this point in the history
We already construct the shared pointer for the module.  Avoid creating
a shadow copy and use the original definition.
  • Loading branch information
compnerd committed May 5, 2023
1 parent 28e99cc commit 039fc57
Showing 1 changed file with 0 additions and 1 deletion.
1 change: 0 additions & 1 deletion lldb/source/Plugins/ObjectFile/PECOFF/ObjectFilePECOFF.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1046,7 +1046,6 @@ void ObjectFilePECOFF::CreateSections(SectionList &unified_section_list) {
unified_section_list.AddSection(header_sp);

const uint32_t nsects = m_sect_headers.size();
ModuleSP module_sp(GetModule());
for (uint32_t idx = 0; idx < nsects; ++idx) {
llvm::StringRef sect_name = GetSectionName(m_sect_headers[idx]);
ConstString const_sect_name(sect_name);
Expand Down

0 comments on commit 039fc57

Please sign in to comment.