[ELF] mergeSections: remove non-alive MergeInputSection
authorFangrui Song <maskray@google.com>
Thu, 16 Aug 2018 17:22:02 +0000 (17:22 +0000)
committerFangrui Song <maskray@google.com>
Thu, 16 Aug 2018 17:22:02 +0000 (17:22 +0000)
commitebf9607d7dd01dcbbe0054868ce3c7672bde3fce
tree9ba4f20e57cfd96a1d706794680164c02824804e
parent8f669aadcad2c492a6db6ebe260534089b1ee708
[ELF] mergeSections: remove non-alive MergeInputSection

Summary: This makes it conform to what the comment says. Otherwise when getErrPlace() is called afterwards, cast<InputSection>(D) will cause incompatible cast as MergeInputSection is not a subclass of InputSection.

Reviewers: ruiu, grimar, espindola, pcc

Reviewed By: grimar

Subscribers: emaste, arichardson, llvm-commits

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

llvm-svn: 339904
lld/ELF/SyntheticSections.cpp
lld/test/ELF/x86-64-reloc-error2.s