[ELF] Use the Repl point to avoid the segfault when using ICF
authorPetr Hosek <phosek@chromium.org>
Fri, 21 Sep 2018 00:55:42 +0000 (00:55 +0000)
committerPetr Hosek <phosek@chromium.org>
Fri, 21 Sep 2018 00:55:42 +0000 (00:55 +0000)
commite717ae211770cd243fef48e343ad3cb77ba11eec
tree58d7b7ee2a52f7603c34e7dfd595671013b9125d
parent45b3ddc5a4919b72e3a15e55eea86d470728a43b
[ELF] Use the Repl point to avoid the segfault when using ICF

This addresses PR38918.

Differential Revision: https://reviews.llvm.org/D52202

llvm-svn: 342704
lld/ELF/InputSection.cpp
lld/test/ELF/emit-relocs-icf1.s [new file with mode: 0644]
lld/test/ELF/emit-relocs-icf2.s [new file with mode: 0644]