From 6e1001bd8d3d653c600eca98a5ec2f3978da926c Mon Sep 17 00:00:00 2001 From: George Rimar Date: Thu, 28 Sep 2017 09:40:17 +0000 Subject: [PATCH] [EFL] - Fix incorrect code style. NFC. llvm-svn: 314394 --- lld/ELF/OutputSections.cpp | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/lld/ELF/OutputSections.cpp b/lld/ELF/OutputSections.cpp index f9a4b84..2344ef7 100644 --- a/lld/ELF/OutputSections.cpp +++ b/lld/ELF/OutputSections.cpp @@ -451,12 +451,14 @@ template void OutputSection::finalize() { // but sort must consider them all at once. std::vector ScriptSections; std::vector Sections; - for (BaseCommand *Base : Commands) - if (auto *ISD = dyn_cast(Base)) + for (BaseCommand *Base : Commands) { + if (auto *ISD = dyn_cast(Base)) { for (InputSection *&IS : ISD->Sections) { ScriptSections.push_back(&IS); Sections.push_back(IS); } + } + } if (Flags & SHF_LINK_ORDER) { std::stable_sort(Sections.begin(), Sections.end(), compareByFilePosition); -- 2.7.4