[LLDB] Fix handling of bit-fields in a union
authorshafik <syaghmour@apple.com>
Thu, 12 Nov 2020 19:22:02 +0000 (11:22 -0800)
committershafik <syaghmour@apple.com>
Thu, 12 Nov 2020 22:09:27 +0000 (14:09 -0800)
commitbae9aedb341c5f4eceafba2ee1fec7c05d842c97
treee1ef8aa9b0687448a6b0f5dad323b48b40bc87aa
parentd5e89e8fc1aa5d0af0ba7e9ac209a9b1a191df0b
[LLDB] Fix handling of bit-fields in a union

When parsing DWARF and laying out bit-fields we don't properly take into account when they are in a union, they will all have a zero offset.

Differential Revision: https://reviews.llvm.org/D91118
lldb/source/Plugins/SymbolFile/DWARF/DWARFASTParserClang.cpp
lldb/test/API/lang/cpp/bitfields/TestCppBitfields.py
lldb/test/API/lang/cpp/bitfields/main.cpp