summaryrefslogtreecommitdiffstats
path: root/lld/ELF/LinkerScript.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'lld/ELF/LinkerScript.cpp')
-rw-r--r--lld/ELF/LinkerScript.cpp3
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;
OpenPOWER on IntegriCloud