DWARF layout for bitfields is wrong when the bit offset is negative.
authorGreg Clayton <gclayton@apple.com>
Fri, 22 Apr 2016 23:14:35 +0000 (23:14 +0000)
committerGreg Clayton <gclayton@apple.com>
Fri, 22 Apr 2016 23:14:35 +0000 (23:14 +0000)
commitcae0855a62d2dc09fddc581f7a52d10c43b17571
treea81b57f09ec7b70aafcbab97bfbbd74608ebc264
parent6010f97ee66fdc11f8f85b46c8e24f440ab8c72e
DWARF layout for bitfields is wrong when the bit offset is negative.

Some older versions of clang emitted bit offsets that were negative and these bitfields would have their bitfield-ness stripped off and it would cause a clang assertion in clang assertions were enabled. I updated the bitfield C test to make sure we don't regress.

<rdar://problem/21082998>

llvm-svn: 267248
lldb/packages/Python/lldbsuite/test/lang/c/bitfields/TestBitfields.py
lldb/packages/Python/lldbsuite/test/lang/c/bitfields/main.c
lldb/source/Plugins/SymbolFile/DWARF/DWARFASTParserClang.cpp