[llvm] 2c7f511 - [ORC][MachO] Remove unused variables.
Lang Hames via llvm-commits
llvm-commits at lists.llvm.org
Sat Apr 8 16:57:56 PDT 2023
Author: Lang Hames
Date: 2023-04-08T16:48:13-07:00
New Revision: 2c7f5118772d1168819f4850206ebc59881d93bb
URL: https://github.com/llvm/llvm-project/commit/2c7f5118772d1168819f4850206ebc59881d93bb
DIFF: https://github.com/llvm/llvm-project/commit/2c7f5118772d1168819f4850206ebc59881d93bb.diff
LOG: [ORC][MachO] Remove unused variables.
Added:
Modified:
llvm/lib/ExecutionEngine/Orc/MachOPlatform.cpp
Removed:
################################################################################
diff --git a/llvm/lib/ExecutionEngine/Orc/MachOPlatform.cpp b/llvm/lib/ExecutionEngine/Orc/MachOPlatform.cpp
index 793bc3507b02..c769108c1fa9 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;
}
More information about the llvm-commits
mailing list