[llvm] 95a18b8 - Follow up on D69112, fix build break for skipping field initialization
via llvm-commits
llvm-commits at lists.llvm.org
Thu Oct 24 14:10:28 PDT 2019
Author: jasonliu
Date: 2019-10-24T21:10:06Z
New Revision: 95a18b848fcb252a736f455e80364352b67bd51b
URL: https://github.com/llvm/llvm-project/commit/95a18b848fcb252a736f455e80364352b67bd51b
DIFF: https://github.com/llvm/llvm-project/commit/95a18b848fcb252a736f455e80364352b67bd51b.diff
LOG: 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
Added:
Modified:
llvm/lib/MC/XCOFFObjectWriter.cpp
Removed:
################################################################################
diff --git a/llvm/lib/MC/XCOFFObjectWriter.cpp b/llvm/lib/MC/XCOFFObjectWriter.cpp
index f2c054f65cc3..6b975ddfa90a 100644
--- a/llvm/lib/MC/XCOFFObjectWriter.cpp
+++ b/llvm/lib/MC/XCOFFObjectWriter.cpp
@@ -156,8 +156,8 @@ class XCOFFObjectWriter : public MCObjectWriter {
// CsectGroups. These store the csects which make up
diff erent parts of
// the sections. Should have one for each set of csects that get mapped into
// the same section and get handled in a 'similar' way.
- CsectGroup ProgramCodeCsects{CsectGroup::LabelDefSupported};
- CsectGroup BSSCsects{CsectGroup::LabelDefUnsupported};
+ CsectGroup ProgramCodeCsects{CsectGroup::LabelDefSupported, {}};
+ CsectGroup BSSCsects{CsectGroup::LabelDefUnsupported, {}};
// The Predefined sections.
Section Text;
More information about the llvm-commits
mailing list