diff options
author | Peter Collingbourne <peter@pcc.me.uk> | 2017-06-21 21:29:51 +0000 |
---|---|---|
committer | Peter Collingbourne <peter@pcc.me.uk> | 2017-06-21 21:29:51 +0000 |
commit | 55fb83b78add0dcb917730b73203ba37ae7227be (patch) | |
tree | a144d25f7425a0401cba3444c9bed23a36a89319 /lld/ELF/MarkLive.cpp | |
parent | 2785ee96370978db041b936fbaff0892636fcdf4 (diff) |
ELF: Don't dereference Repl in MarkLive. NFCI.
This is unnecessary because --gc-sections runs before ICF.
Differential Revision: https://reviews.llvm.org/D34465
Diffstat (limited to 'lld/ELF/MarkLive.cpp')
-rw-r--r-- | lld/ELF/MarkLive.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lld/ELF/MarkLive.cpp b/lld/ELF/MarkLive.cpp index 0b4a78f8da6..bde3eefc6d5 100644 --- a/lld/ELF/MarkLive.cpp +++ b/lld/ELF/MarkLive.cpp @@ -78,7 +78,7 @@ static void resolveReloc(InputSectionBase &Sec, RelT &Rel, typename ELFT::uint Offset = D->Value; if (D->isSection()) Offset += getAddend<ELFT>(Sec, Rel); - Fn({cast<InputSectionBase>(D->Section)->Repl, Offset}); + Fn({cast<InputSectionBase>(D->Section), Offset}); } else if (auto *U = dyn_cast<Undefined>(&B)) { for (InputSectionBase *Sec : CNamedSections.lookup(U->getName())) Fn({Sec, 0}); |