summaryrefslogtreecommitdiff
path: root/lld/MachO/InputSection.cpp
diff options
context:
space:
mode:
authorGreg McGary <gkm@fb.com>2021-11-15 11:46:59 -0700
committerGreg McGary <gkm@fb.com>2021-11-17 15:16:44 -0700
commit9cc489a4b2b58b70f7b7d84a8544e22f39423ae6 (patch)
tree9bd0941ba608b741f0ad369f6d0d21045997c483 /lld/MachO/InputSection.cpp
parent0d0c46a35b3b30782107c63e833a91dbbe087feb (diff)
[lld-macho][nfc] Factor-out NFC changes from main __eh_frame diff
In order to keep signal:noise high for the `__eh_frame` diff, I have teased-out the NFC changes and put them here. Differential Revision: https://reviews.llvm.org/D114017
Diffstat (limited to 'lld/MachO/InputSection.cpp')
-rw-r--r--lld/MachO/InputSection.cpp7
1 files changed, 4 insertions, 3 deletions
diff --git a/lld/MachO/InputSection.cpp b/lld/MachO/InputSection.cpp
index 0dbe6a619e98..96167b72a724 100644
--- a/lld/MachO/InputSection.cpp
+++ b/lld/MachO/InputSection.cpp
@@ -120,10 +120,11 @@ void ConcatInputSection::foldIdentical(ConcatInputSection *copy) {
it = symbols.begin();
uint64_t v = (*it)->value;
for (++it; it != symbols.end(); ++it) {
- if ((*it)->value == v)
- (*it)->compactUnwind = nullptr;
+ Defined *d = *it;
+ if (d->value == v)
+ d->unwindEntry = nullptr;
else
- v = (*it)->value;
+ v = d->value;
}
}