From 2c7f5118772d1168819f4850206ebc59881d93bb Mon Sep 17 00:00:00 2001 From: Lang Hames Date: Sat, 8 Apr 2023 16:48:13 -0700 Subject: [PATCH] [ORC][MachO] Remove unused variables. --- llvm/lib/ExecutionEngine/Orc/MachOPlatform.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/llvm/lib/ExecutionEngine/Orc/MachOPlatform.cpp b/llvm/lib/ExecutionEngine/Orc/MachOPlatform.cpp index 793bc35..c769108 100644 --- a/llvm/lib/ExecutionEngine/Orc/MachOPlatform.cpp +++ b/llvm/lib/ExecutionEngine/Orc/MachOPlatform.cpp @@ -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; } -- 2.7.4