projects
/
platform
/
upstream
/
llvm.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
0c798aa
)
Speculative build fix for GCC 5.3.0
author
Hans Wennborg
<hans@chromium.org>
Thu, 24 Oct 2019 17:57:35 +0000
(19:57 +0200)
committer
Hans Wennborg
<hans@chromium.org>
Thu, 24 Oct 2019 17:59:35 +0000
(19:59 +0200)
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};
^
llvm/lib/MC/XCOFFObjectWriter.cpp
patch
|
blob
|
history
diff --git
a/llvm/lib/MC/XCOFFObjectWriter.cpp
b/llvm/lib/MC/XCOFFObjectWriter.cpp
index
2868972
..
f2c054f
100644
(file)
--- 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);