diff options
Diffstat (limited to 'lld/ELF/LinkerScript.cpp')
| -rw-r--r-- | lld/ELF/LinkerScript.cpp | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/lld/ELF/LinkerScript.cpp b/lld/ELF/LinkerScript.cpp index cd6093e5bc2..fdd6220c015 100644 --- a/lld/ELF/LinkerScript.cpp +++ b/lld/ELF/LinkerScript.cpp @@ -332,8 +332,7 @@ LinkerScript::createInputSectionList(OutputSectionCommand &OutCmd) { continue; Cmd->Sections = computeInputSections(Cmd); - for (InputSectionBase *S : Cmd->Sections) - Ret.push_back(S); + Ret.insert(Ret.end(), Cmd->Sections.begin(), Cmd->Sections.end()); } return Ret; |

