[all-commits] [llvm/llvm-project] bae9ae: [LLDB] Fix handling of bit-fields in a union

Shafik Yaghmour via All-commits all-commits at lists.llvm.org
Thu Nov 12 14:09:49 PST 2020


  Branch: refs/heads/master
  Home:   https://github.com/llvm/llvm-project
  Commit: bae9aedb341c5f4eceafba2ee1fec7c05d842c97
      https://github.com/llvm/llvm-project/commit/bae9aedb341c5f4eceafba2ee1fec7c05d842c97
  Author: shafik <syaghmour at apple.com>
  Date:   2020-11-12 (Thu, 12 Nov 2020)

  Changed paths:
    M lldb/source/Plugins/SymbolFile/DWARF/DWARFASTParserClang.cpp
    M lldb/test/API/lang/cpp/bitfields/TestCppBitfields.py
    M lldb/test/API/lang/cpp/bitfields/main.cpp

  Log Message:
  -----------
  [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




More information about the All-commits mailing list