diff options
| author | Erich Keane <erich.keane@intel.com> | 2020-05-07 12:11:03 -0700 |
|---|---|---|
| committer | Erich Keane <erich.keane@intel.com> | 2020-05-07 12:49:46 -0700 |
| commit | ed86058b53f971ed93cc79c8b4fc76da37ca0664 (patch) | |
| tree | fcd90e299ab280cb4c81b57912427dcf12625258 /lldb/source/Plugins/ScriptInterpreter/Python/ScriptInterpreterPython.h | |
| parent | 08c9c13749aebd03bec55442301442670fa0b72c (diff) | |
| download | llvm-ed86058b53f971ed93cc79c8b4fc76da37ca0664.zip llvm-ed86058b53f971ed93cc79c8b4fc76da37ca0664.tar.gz llvm-ed86058b53f971ed93cc79c8b4fc76da37ca0664.tar.bz2 | |
Add static assert to ID Table to make sure aux targets work right.
I discovered that the limit on possible builtins managed by this
ObjCOrBuiltin variable is too low when combining large targets, since
aux-targets are appended to the targets list. A runtime assert exists
for this, however this patch creates a static-assert as well.
The logic for said static-assert is to make sure we have the room for
the aux-target and target to both be the largest list, which makes sure
we have room for all possible combinations.
I also incremented the number of bits by 1, since I discovered this
currently broken. The current bit-count was 36, so this doesn't
increase any size.
Diffstat (limited to 'lldb/source/Plugins/ScriptInterpreter/Python/ScriptInterpreterPython.h')
0 files changed, 0 insertions, 0 deletions
