summaryrefslogtreecommitdiffstats
path: root/clang/lib/CodeGen/CodeGenFunction.cpp
diff options
context:
space:
mode:
authorAkira Hatanaka <ahatanaka@apple.com>2018-02-01 03:04:15 +0000
committerAkira Hatanaka <ahatanaka@apple.com>2018-02-01 03:04:15 +0000
commitfc681efde49d2c3e5c4f55d95776beccfc5ac1eb (patch)
tree426b3221d08a09e2df2bbbcb2256ef92ebda0036 /clang/lib/CodeGen/CodeGenFunction.cpp
parent3b8b4eb64da8979a306a549ec09b88dfd20c0c0b (diff)
downloadbcm5719-llvm-fc681efde49d2c3e5c4f55d95776beccfc5ac1eb.tar.gz
bcm5719-llvm-fc681efde49d2c3e5c4f55d95776beccfc5ac1eb.zip
[CodeGen] Fix an assertion failure in CGRecordLowering.
This patch fixes a bug in CGRecordLowering::accumulateBitFields where it unconditionally starts a new run and emits a storage field when it sees a zero-sized bitfield, which causes an assertion in insertPadding to fail when -fno-bitfield-type-align is used. It shouldn't emit new storage if UseZeroLengthBitfieldAlignment and UseBitFieldTypeAlignment are both false. rdar://problem/36762205 llvm-svn: 323943
Diffstat (limited to 'clang/lib/CodeGen/CodeGenFunction.cpp')
0 files changed, 0 insertions, 0 deletions
OpenPOWER on IntegriCloud