summaryrefslogtreecommitdiff
path: root/lldb/source
diff options
context:
space:
mode:
authorSaleem Abdulrasool <compnerd@compnerd.org>2023-05-05 10:54:00 -0700
committerSaleem Abdulrasool <compnerd@compnerd.org>2023-05-05 10:55:29 -0700
commit039fc57191980847afb6e674cac8bcbb6c1efa13 (patch)
tree507e3ecd0472fc46b8b5cc16d6fed31ca87982fa /lldb/source
parent28e99cccf101a14a5b4579eb23d50e07e7eae325 (diff)
downloadllvm-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.cpp1
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);