[Lldb-commits] [lldb] [lldb] Add a static_assert that g_core_definitions matches the Core enum (PR #159452)
Jonas Devlieghere via lldb-commits
lldb-commits at lists.llvm.org
Wed Sep 17 13:59:23 PDT 2025
JDevlieghere wrote:
This is what the compiler tells you when you make a mistake:
```
/Users/jonas/llvm/llvm-project/lldb/source/Utility/ArchSpec.cpp:263:34: note: expression evaluates to '24 == 25'
263 | g_core_definitions[I].core == I,
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~
/Users/jonas/llvm/llvm-project/lldb/source/Utility/ArchSpec.cpp:263:7: error: static assertion failed due to requirement 'g_core_definitions[24].core == 24': g_core_definitions order doesn't match Core enumeration
263 | g_core_definitions[I].core == I,
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
```
https://github.com/llvm/llvm-project/pull/159452
More information about the lldb-commits
mailing list