[Lldb-commits] [lldb] [lldb] Add static_assert to catch increases to size of Symbol (PR #200919)

Dave Lee via lldb-commits lldb-commits at lists.llvm.org
Sat Jun 6 06:40:10 PDT 2026


kastiglione wrote:

I used == so that the optimal size is updated with each improvement. If/when the size of Symbol is reduced, the assert will force updating the number to match the new smaller size. With <=, a later commit could silently grow Symbol back to its previous size and the assert would never fire.

I think it's fine to gate this assert for 64 bit platforms only.

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


More information about the lldb-commits mailing list