summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorHans Wennborg <hans@chromium.org>2019-10-24 19:57:35 +0200
committerHans Wennborg <hans@chromium.org>2019-10-24 19:59:35 +0200
commit5da6d4ec1646706a5e7b6866c0085e35165419ba (patch)
tree1b23c693b8b7c313982da0d8ec7e2e7f9d20c834
parent0c798aa4483e103e67231c279aed00cd16154e33 (diff)
downloadbcm5719-llvm-5da6d4ec1646706a5e7b6866c0085e35165419ba.tar.gz
bcm5719-llvm-5da6d4ec1646706a5e7b6866c0085e35165419ba.zip
Speculative build fix for GCC 5.3.0
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}; ^
-rw-r--r--llvm/lib/MC/XCOFFObjectWriter.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/llvm/lib/MC/XCOFFObjectWriter.cpp b/llvm/lib/MC/XCOFFObjectWriter.cpp
index 2868972f71c..f2c054f65cc 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);
OpenPOWER on IntegriCloud