[ORC][MachO] Remove unused variables.
authorLang Hames <lhames@gmail.com>
Sat, 8 Apr 2023 23:48:13 +0000 (16:48 -0700)
committerLang Hames <lhames@gmail.com>
Sat, 8 Apr 2023 23:48:13 +0000 (16:48 -0700)
llvm/lib/ExecutionEngine/Orc/MachOPlatform.cpp

index 793bc35..c769108 100644 (file)
@@ -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;
     }