projects
/
platform
/
upstream
/
llvm.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
c121f3a
)
[ORC][MachO] Remove unused variables.
author
Lang Hames
<lhames@gmail.com>
Sat, 8 Apr 2023 23:48:13 +0000
(16:48 -0700)
committer
Lang Hames
<lhames@gmail.com>
Sat, 8 Apr 2023 23:48:13 +0000
(16:48 -0700)
llvm/lib/ExecutionEngine/Orc/MachOPlatform.cpp
patch
|
blob
|
history
diff --git
a/llvm/lib/ExecutionEngine/Orc/MachOPlatform.cpp
b/llvm/lib/ExecutionEngine/Orc/MachOPlatform.cpp
index
793bc35
..
c769108
100644
(file)
--- 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;
}