[llvm] Fix size in bytes of type DIEs when size in bits is not a multiple of 8 (PR #69741)

David Blaikie via llvm-commits llvm-commits at lists.llvm.org
Fri Oct 20 11:41:29 PDT 2023


dwblaikie wrote:

> Just added some tests!

Thanks!

> Motivation wise: Swift has builtin types which are non-byte-size. For example, the builtin that the standard boolean wraps is 1 bit long.

Hmm, I'm still not sure about this - if the DWARF is describing it as being 1 byte long, presumably that ABI has to actually allocate a byte for this type? So in what sense is the type only 1 bit long?

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


More information about the llvm-commits mailing list