Skip to content

Commit

Permalink
[ORC][MachO] Remove unused variables.
Browse files Browse the repository at this point in the history
  • Loading branch information
lhames committed Apr 8, 2023
1 parent c121f3a commit 2c7f511
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions llvm/lib/ExecutionEngine/Orc/MachOPlatform.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1274,11 +1274,11 @@ Error MachOPlatform::MachOPlatformPlugin::createObjCRuntimeObject(
size_t NumRuntimeSections = 0;

for (auto ObjCRuntimeSectionName : ObjCRuntimeObjectSectionsData)
if (auto *Sec = G.findSectionByName(ObjCRuntimeSectionName))
if (G.findSectionByName(ObjCRuntimeSectionName))
++NumRuntimeSections;

for (auto ObjCRuntimeSectionName : ObjCRuntimeObjectSectionsText) {
if (auto *Sec = G.findSectionByName(ObjCRuntimeSectionName)) {
if (G.findSectionByName(ObjCRuntimeSectionName)) {
++NumRuntimeSections;
NeedTextSegment = true;
}
Expand Down

0 comments on commit 2c7f511

Please sign in to comment.