diff --git a/lld/ELF/LinkerScript.cpp b/lld/ELF/LinkerScript.cpp index 019c4e8df2b3..7776889eaab4 100644 --- a/lld/ELF/LinkerScript.cpp +++ b/lld/ELF/LinkerScript.cpp @@ -333,7 +333,7 @@ LinkerScript::createInputSectionList(OutputSectionCommand &OutCmd) { Cmd->Sections = computeInputSections(Cmd); for (InputSectionBase *S : Cmd->Sections) - Ret.push_back(static_cast(S)); + Ret.push_back(S); } return Ret;