[llvm] 55c223a - Try harder to fix GCC 5.3 build
Hans Wennborg via llvm-commits
llvm-commits at lists.llvm.org
Thu Oct 24 14:43:13 PDT 2019
Author: Hans Wennborg
Date: 2019-10-24T23:42:48+02:00
New Revision: 55c223a7ed522293cf9995d07d348368c345d1f2
URL: https://github.com/llvm/llvm-project/commit/55c223a7ed522293cf9995d07d348368c345d1f2
DIFF: https://github.com/llvm/llvm-project/commit/55c223a7ed522293cf9995d07d348368c345d1f2.diff
LOG: 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};
^
Added:
Modified:
llvm/lib/MC/XCOFFObjectWriter.cpp
Removed:
################################################################################
diff --git a/llvm/lib/MC/XCOFFObjectWriter.cpp b/llvm/lib/MC/XCOFFObjectWriter.cpp
index 6b975ddfa90a..3199c18fc167 100644
--- a/llvm/lib/MC/XCOFFObjectWriter.cpp
+++ b/llvm/lib/MC/XCOFFObjectWriter.cpp
@@ -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);
More information about the llvm-commits
mailing list