[lld] r314394 - [EFL] - Fix incorrect code style. NFC.

George Rimar via llvm-commits llvm-commits at lists.llvm.org
Thu Sep 28 02:40:17 PDT 2017


Author: grimar
Date: Thu Sep 28 02:40:17 2017
New Revision: 314394

URL: http://llvm.org/viewvc/llvm-project?rev=314394&view=rev
Log:
[EFL] - Fix incorrect code style. NFC.

Modified:
    lld/trunk/ELF/OutputSections.cpp

Modified: lld/trunk/ELF/OutputSections.cpp
URL: http://llvm.org/viewvc/llvm-project/lld/trunk/ELF/OutputSections.cpp?rev=314394&r1=314393&r2=314394&view=diff
==============================================================================
--- lld/trunk/ELF/OutputSections.cpp (original)
+++ lld/trunk/ELF/OutputSections.cpp Thu Sep 28 02:40:17 2017
@@ -451,12 +451,14 @@ template <class ELFT> void OutputSection
   // but sort must consider them all at once.
   std::vector<InputSection **> ScriptSections;
   std::vector<InputSection *> Sections;
-  for (BaseCommand *Base : Commands)
-    if (auto *ISD = dyn_cast<InputSectionDescription>(Base))
+  for (BaseCommand *Base : Commands) {
+    if (auto *ISD = dyn_cast<InputSectionDescription>(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);




More information about the llvm-commits mailing list