diff options
author | Rafael Espindola <rafael.espindola@gmail.com> | 2017-12-20 20:46:08 +0000 |
---|---|---|
committer | Rafael Espindola <rafael.espindola@gmail.com> | 2017-12-20 20:46:08 +0000 |
commit | 10743e4cba8a469efcf9084ae567370429ca73b8 (patch) | |
tree | f9bfecd94617d1ac6292791230a1dd805c3790a9 /lld/ELF/MarkLive.cpp | |
parent | 1df43a2b3b12b113cfa679080db67ce53c0a129e (diff) |
Use dyn_cast instead of dyn_cast_or_null.
There should be no null sections in InputSections.
Diffstat (limited to 'lld/ELF/MarkLive.cpp')
-rw-r--r-- | lld/ELF/MarkLive.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lld/ELF/MarkLive.cpp b/lld/ELF/MarkLive.cpp index 3e56ae09ed5..88f558c7a3c 100644 --- a/lld/ELF/MarkLive.cpp +++ b/lld/ELF/MarkLive.cpp @@ -246,7 +246,7 @@ template <class ELFT> static void doGcSections() { // that point to .eh_frames. Otherwise, the garbage collector would drop // all of them. We also want to preserve personality routines and LSDA // referenced by .eh_frame sections, so we scan them for that here. - if (auto *EH = dyn_cast_or_null<EhInputSection>(Sec)) { + if (auto *EH = dyn_cast<EhInputSection>(Sec)) { EH->Live = true; scanEhFrameSection<ELFT>(*EH, Enqueue); } |