[lld] r305954 - ELF: Don't dereference Repl in MarkLive. NFCI.
Peter Collingbourne via llvm-commits
llvm-commits at lists.llvm.org
Wed Jun 21 14:29:52 PDT 2017
Author: pcc
Date: Wed Jun 21 16:29:51 2017
New Revision: 305954
URL: http://llvm.org/viewvc/llvm-project?rev=305954&view=rev
Log:
ELF: Don't dereference Repl in MarkLive. NFCI.
This is unnecessary because --gc-sections runs before ICF.
Differential Revision: https://reviews.llvm.org/D34465
Modified:
lld/trunk/ELF/MarkLive.cpp
Modified: lld/trunk/ELF/MarkLive.cpp
URL: http://llvm.org/viewvc/llvm-project/lld/trunk/ELF/MarkLive.cpp?rev=305954&r1=305953&r2=305954&view=diff
==============================================================================
--- lld/trunk/ELF/MarkLive.cpp (original)
+++ lld/trunk/ELF/MarkLive.cpp Wed Jun 21 16:29:51 2017
@@ -78,7 +78,7 @@ static void resolveReloc(InputSectionBas
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});
More information about the llvm-commits
mailing list