Skip to content

Commit 55c223a

Browse files
committed
Try harder to fix GCC 5.3 build
(This time verified locally.) It was failing with: llvm/lib/MC/XCOFFObjectWriter.cpp:168:56: error: array must be initialized with a brace-enclosed initializer std::array<Section *const, 2> Sections = {&Text, &BSS}; ^
1 parent 2c37833 commit 55c223a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

llvm/lib/MC/XCOFFObjectWriter.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -165,7 +165,7 @@ class XCOFFObjectWriter : public MCObjectWriter {
165165

166166
// All the XCOFF sections, in the order they will appear in the section header
167167
// table.
168-
std::array<Section *const, 2> Sections = {&Text, &BSS};
168+
std::array<Section *const, 2> Sections{{&Text, &BSS}};
169169

170170
CsectGroup &getCsectGroup(const MCSectionXCOFF *MCSec);
171171

0 commit comments

Comments
 (0)