diff options
author | Martin Storsjö <martin@martin.st> | 2019-12-18 10:41:41 +0200 |
---|---|---|
committer | Martin Storsjö <martin@martin.st> | 2019-12-19 12:14:09 +0200 |
commit | f20fc65887e2085332d111ee0b05736794423c72 (patch) | |
tree | b39d34e71a329812079217250b34654b14d7af18 /clang/lib/Frontend/CompilerInvocation.cpp | |
parent | 29d8c27c65289d1ed370861ff75f309a689a22cb (diff) | |
download | llvm-f20fc65887e2085332d111ee0b05736794423c72.zip llvm-f20fc65887e2085332d111ee0b05736794423c72.tar.gz llvm-f20fc65887e2085332d111ee0b05736794423c72.tar.bz2 |
[clang] Fix compilation with GCC < 8 for MinGW
GCC 7 and earlier, when targeting MinGW, seems to have a bug in
layout/size of bitfield structs if they contain a nested enum,
making the size of the struct 8 bytes, while we have a static assert
requiring it to be 4 bytes or less.
While this clearly is a GCC bug, the workaround (moving the enum out
of the bitfield) also is very nonintrusive and matches other existing
enums there.
Differential Revision: https://reviews.llvm.org/D71650
Diffstat (limited to 'clang/lib/Frontend/CompilerInvocation.cpp')
0 files changed, 0 insertions, 0 deletions