[Lldb-commits] [PATCH] D143347: [lldb][DWARF] Infer no_unique_address attribute

Pavel Kosov via Phabricator via lldb-commits lldb-commits at lists.llvm.org
Wed Apr 12 13:02:30 PDT 2023


kpdev42 updated this revision to Diff 512945.
kpdev42 added a comment.

Thanks for pointing out the bug @Michael137 . It seems that clang assigns arbitrary offsets for non_unique_address so analyzing them brings me nowhere. In this patch I tried assigning no_unique_address to every empty structure and this fixed issue you found, making the code changes much smaller and simpler. The lldb test suite pass for me as well


Repository:
  rG LLVM Github Monorepo

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

https://reviews.llvm.org/D143347

Files:
  lldb/source/Plugins/SymbolFile/DWARF/DWARFASTParserClang.cpp
  lldb/test/API/lang/cpp/no_unique_address/Makefile
  lldb/test/API/lang/cpp/no_unique_address/TestNoUniqueAddress.py
  lldb/test/API/lang/cpp/no_unique_address/main.cpp

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D143347.512945.patch
Type: text/x-patch
Size: 5673 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/lldb-commits/attachments/20230412/d38f525e/attachment-0001.bin>


More information about the lldb-commits mailing list