Speculative build fix for GCC 5.3.0
authorHans Wennborg <hans@chromium.org>
Thu, 24 Oct 2019 17:57:35 +0000 (19:57 +0200)
committerHans Wennborg <hans@chromium.org>
Thu, 24 Oct 2019 17:59:35 +0000 (19:59 +0200)
It was failing with

llvm/lib/MC/XCOFFObjectWriter.cpp:168:53: error: array must be initialized with a brace-enclosed initializer
   std::array<Section *const, 2> Sections{&Text, &BSS};
                                                     ^

llvm/lib/MC/XCOFFObjectWriter.cpp

index 2868972..f2c054f 100644 (file)
@@ -165,7 +165,7 @@ class XCOFFObjectWriter : public MCObjectWriter {
 
   // All the XCOFF sections, in the order they will appear in the section header
   // table.
-  std::array<Section *const, 2> Sections{&Text, &BSS};
+  std::array<Section *const, 2> Sections = {&Text, &BSS};
 
   CsectGroup &getCsectGroup(const MCSectionXCOFF *MCSec);