[Lldb-commits] [clang] [lldb] [lldb] Analyze enum promotion type during parsing (PR #115005)

Ilia Kuklin via lldb-commits lldb-commits at lists.llvm.org
Sat Feb 8 08:09:58 PST 2025


kuilpd wrote:

@Michael137 
Changed the first argument of `computeEnumBits` to an `ArrayRef` to avoid the template and so it can be still seamlessly used from Sema.
On LLDB side, I had to create a `SmallVector` and put enum constants there at the point of their creation (`AddEnumerationValueToEnumerationType` returns a pointer anyway) so that it can be passed to `computeEnumBits` as is. It's only a vector of pointers, and it's discarded after, so if it's not a problem here, I'll make the same changes in the Sema PR.

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


More information about the lldb-commits mailing list