[PATCH] D34465: ELF: Don't dereference Repl in MarkLive. NFCI.
Peter Collingbourne via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Wed Jun 21 10:56:18 PDT 2017
pcc created this revision.
Herald added a subscriber: emaste.
This is unnecessary because --gc-sections runs before ICF.
https://reviews.llvm.org/D34465
Files:
lld/ELF/MarkLive.cpp
Index: lld/ELF/MarkLive.cpp
===================================================================
--- lld/ELF/MarkLive.cpp
+++ lld/ELF/MarkLive.cpp
@@ -78,7 +78,7 @@
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});
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D34465.103424.patch
Type: text/x-patch
Size: 536 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20170621/9c73efc3/attachment.bin>
More information about the llvm-commits
mailing list