ObjectFile: remove extraneous shadowed variable (NFCI)

We already construct the shared pointer for the module.  Avoid creating
a shadow copy and use the original definition.
This commit is contained in:
Saleem Abdulrasool
2023-05-05 10:54:00 -07:00
parent 28e99cccf1
commit 039fc57191

View File

@@ -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);