Skip to content

Commit bac3570

Browse files
committed
ELF: Don't dereference Repl in MarkLive. NFCI.
This is unnecessary because --gc-sections runs before ICF. Differential Revision: https://reviews.llvm.org/D34465 llvm-svn: 305954
1 parent 5b933fe commit bac3570

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lld/ELF/MarkLive.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -78,7 +78,7 @@ static void resolveReloc(InputSectionBase &Sec, RelT &Rel,
7878
typename ELFT::uint Offset = D->Value;
7979
if (D->isSection())
8080
Offset += getAddend<ELFT>(Sec, Rel);
81-
Fn({cast<InputSectionBase>(D->Section)->Repl, Offset});
81+
Fn({cast<InputSectionBase>(D->Section), Offset});
8282
} else if (auto *U = dyn_cast<Undefined>(&B)) {
8383
for (InputSectionBase *Sec : CNamedSections.lookup(U->getName()))
8484
Fn({Sec, 0});

0 commit comments

Comments
 (0)