summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--lld/ELF/OutputSections.cpp3
1 files changed, 1 insertions, 2 deletions
diff --git a/lld/ELF/OutputSections.cpp b/lld/ELF/OutputSections.cpp
index 5074e79f5fc..14bc19dc171 100644
--- a/lld/ELF/OutputSections.cpp
+++ b/lld/ELF/OutputSections.cpp
@@ -860,8 +860,7 @@ lld::elf2::getLocalRelTarget(const ObjectFile<ELFT> &File,
Offset += Addend;
Addend = 0;
}
- return VA + cast<MergeInputSection<ELFT>>(Section)->getOffset(Offset) +
- Addend;
+ return VA + Section->getOffset(Offset) + Addend;
}
// Returns true if a symbol can be replaced at load-time by a symbol
OpenPOWER on IntegriCloud