diff options
-rw-r--r-- | lld/ELF/InputSection.cpp | 7 |
1 files changed, 1 insertions, 6 deletions
diff --git a/lld/ELF/InputSection.cpp b/lld/ELF/InputSection.cpp index b1c5a31a724..600a0bef151 100644 --- a/lld/ELF/InputSection.cpp +++ b/lld/ELF/InputSection.cpp @@ -888,13 +888,8 @@ void InputSectionBase::adjustSplitStackFunctionPrologues(uint8_t *Buf, if (Rel.Sym->isLocal()) continue; - Defined *D = dyn_cast<Defined>(Rel.Sym); - // A reference to an undefined symbol was an error, and should not - // have gotten to this point. - if (!D) - continue; - // Ignore calls into the split-stack api. + Defined *D = cast<Defined>(Rel.Sym); if (D->getName().startswith("__morestack")) { if (D->getName().equals("__morestack")) MorestackCalls.push_back(&Rel); |