summaryrefslogtreecommitdiff
path: root/lld/ELF/MarkLive.cpp
diff options
context:
space:
mode:
authorRafael Espindola <rafael.espindola@gmail.com>2017-12-20 16:28:19 +0000
committerRafael Espindola <rafael.espindola@gmail.com>2017-12-20 16:28:19 +0000
commit6e576a36c3d011e89f394f9d5f3d57b6fe11ac5a (patch)
treec2906ad4ee646f135ffc06f0edcddc4003d2837f /lld/ELF/MarkLive.cpp
parent7e2d36ec168dbbe42de233caa39adae47bfbac2d (diff)
Use a reference for the shared symbol file.
Every shared symbol has a file, so we can use a reference.
Diffstat (limited to 'lld/ELF/MarkLive.cpp')
-rw-r--r--lld/ELF/MarkLive.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/lld/ELF/MarkLive.cpp b/lld/ELF/MarkLive.cpp
index 36f994f2049..3e56ae09ed5 100644
--- a/lld/ELF/MarkLive.cpp
+++ b/lld/ELF/MarkLive.cpp
@@ -68,7 +68,7 @@ static void resolveReloc(InputSectionBase &Sec, RelT &Rel,
B.Used = true;
if (auto *SS = dyn_cast<SharedSymbol>(&B))
if (!SS->isWeak())
- SS->getFile<ELFT>()->IsNeeded = true;
+ SS->getFile<ELFT>().IsNeeded = true;
if (auto *D = dyn_cast<Defined>(&B)) {
auto *RelSec = dyn_cast_or_null<InputSectionBase>(D->Section);