Skip to content

Commit 95a18b8

Browse files
committed
Follow up on D69112, fix build break for skipping field initialization
Clang emit warning for skipping field initialization. Add {} to fix it. This is a patch that fixes issue introduced in https://reviews.llvm.org/D69112
1 parent 201ed14 commit 95a18b8

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

llvm/lib/MC/XCOFFObjectWriter.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -156,8 +156,8 @@ class XCOFFObjectWriter : public MCObjectWriter {
156156
// CsectGroups. These store the csects which make up different parts of
157157
// the sections. Should have one for each set of csects that get mapped into
158158
// the same section and get handled in a 'similar' way.
159-
CsectGroup ProgramCodeCsects{CsectGroup::LabelDefSupported};
160-
CsectGroup BSSCsects{CsectGroup::LabelDefUnsupported};
159+
CsectGroup ProgramCodeCsects{CsectGroup::LabelDefSupported, {}};
160+
CsectGroup BSSCsects{CsectGroup::LabelDefUnsupported, {}};
161161

162162
// The Predefined sections.
163163
Section Text;

0 commit comments

Comments
 (0)