[Lldb-commits] [lldb] [lldb] Add static_assert to catch increases to size of Symbol (PR #200919)
Leandro Lupori via lldb-commits
lldb-commits at lists.llvm.org
Fri Jun 5 13:59:13 PDT 2026
luporl wrote:
The static assert fails on 32-bit Arm: https://lab.llvm.org/buildbot/#/builders/18/builds/26125
```
/home/tcwg-buildbot/worker/lldb-arm-ubuntu/llvm-project/lldb/include/lldb/Symbol/Symbol.h:369:5: error: static assertion failed due to requirement 'sizeof(lldb_private::Symbol) == 52': Symbol is a high volume data type, size must be increased with care
369 | sizeof(lldb_private::Symbol) == 52,
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/home/tcwg-buildbot/worker/lldb-arm-ubuntu/llvm-project/lldb/include/lldb/Symbol/Symbol.h:369:34: note: expression evaluates to '56 == 52'
369 | sizeof(lldb_private::Symbol) == 52,
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~
```
https://github.com/llvm/llvm-project/pull/200919
More information about the lldb-commits
mailing list