[Lldb-commits] [lldb] [lldb][test] Add test for no_unique_address when mixed with bitfields (PR #108155)

Michael Buch via lldb-commits lldb-commits at lists.llvm.org
Wed Sep 11 02:53:53 PDT 2024


Michael137 wrote:

> > The test will fail on windows because no_unique_address is not a thing there:
> 
> Seems like that we should spell it as `[[msvc::no_unique_address]]` on Windows. Is there already such a macro in lldb/test covering this?

Don't think we have coverage for the `[[msvc::no_unique_address]]`. I'm not sure whether this attribute affects PDB (or DWARF for that matter) in the same way that `[[no_unique_address]]` does. And I don't have the setup to test this unfortunately. So I'd rather add a triple explicitly like Pavel suggested, since that exercises exactly the failing codepath that I saw.

https://github.com/llvm/llvm-project/pull/108155


More information about the lldb-commits mailing list