diff options
author | Saleem Abdulrasool <compnerd@compnerd.org> | 2023-05-05 10:54:00 -0700 |
---|---|---|
committer | Saleem Abdulrasool <compnerd@compnerd.org> | 2023-05-05 10:55:29 -0700 |
commit | 039fc57191980847afb6e674cac8bcbb6c1efa13 (patch) | |
tree | 507e3ecd0472fc46b8b5cc16d6fed31ca87982fa /lldb/source | |
parent | 28e99cccf101a14a5b4579eb23d50e07e7eae325 (diff) | |
download | llvm-039fc57191980847afb6e674cac8bcbb6c1efa13.tar.gz |
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.
Diffstat (limited to 'lldb/source')
-rw-r--r-- | lldb/source/Plugins/ObjectFile/PECOFF/ObjectFilePECOFF.cpp | 1 |
1 files changed, 0 insertions, 1 deletions
diff --git a/lldb/source/Plugins/ObjectFile/PECOFF/ObjectFilePECOFF.cpp b/lldb/source/Plugins/ObjectFile/PECOFF/ObjectFilePECOFF.cpp index cded6b5fe698..905226d67c2b 100644 --- a/lldb/source/Plugins/ObjectFile/PECOFF/ObjectFilePECOFF.cpp +++ b/lldb/source/Plugins/ObjectFile/PECOFF/ObjectFilePECOFF.cpp @@ -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); |