[PATCH] D96334: Correctly recognize bitfields when emitting dwarf

Adrian Prantl via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Fri Feb 12 09:08:24 PST 2021


aprantl accepted this revision.
aprantl added a comment.
This revision is now accepted and ready to land.

Let's watch the LLDB / GDB bots carefully after landing this, but it seems to make sense to me.



================
Comment at: llvm/lib/CodeGen/AsmPrinter/DwarfUnit.cpp:1544
 
-    bool IsBitfield = FieldSize && Size != FieldSize;
+    bool IsBitfield = DT->isBitField();
     if (IsBitfield) {
----------------
This line definitely looks good.


Repository:
  rG LLVM Github Monorepo

CHANGES SINCE LAST ACTION
  https://reviews.llvm.org/D96334/new/

https://reviews.llvm.org/D96334



More information about the llvm-commits mailing list