diff options
author | Rafael Espindola <rafael.espindola@gmail.com> | 2017-12-11 19:45:36 +0000 |
---|---|---|
committer | Rafael Espindola <rafael.espindola@gmail.com> | 2017-12-11 19:45:36 +0000 |
commit | c5631a3e8af46db98c3239fa5804cb741793db69 (patch) | |
tree | 52f372bef4e856f67b943a6d70de04be16c3b404 /lld/ELF/MarkLive.cpp | |
parent | ab54b47be0adee57ebde944df94275e6423506c8 (diff) |
Handle symbols pointing to output sections.
Now that gc sections runs after linker defined symbols are added it
can see symbols that point to an OutputSection.
Should fix a bot failure.
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 e2d2ee9c6cf..fbf57a9ee2d 100644 --- a/lld/ELF/MarkLive.cpp +++ b/lld/ELF/MarkLive.cpp @@ -219,7 +219,7 @@ template <class ELFT> static void doGcSections() { auto MarkSymbol = [&](Symbol *Sym) { if (auto *D = dyn_cast_or_null<Defined>(Sym)) - if (auto *IS = cast_or_null<InputSectionBase>(D->Section)) + if (auto *IS = dyn_cast_or_null<InputSectionBase>(D->Section)) Enqueue(IS, D->Value); }; |