Restore size of TemplateParameterList after D44352
authorAaron Puchert <aaronpuchert@alice-dsl.net>
Sat, 5 Sep 2020 15:52:57 +0000 (17:52 +0200)
committerAaron Puchert <aaronpuchert@alice-dsl.net>
Sat, 5 Sep 2020 16:01:33 +0000 (18:01 +0200)
commitd3a779fe21500457e95c8c4e963638b93e3bcc71
tree9725814dd8fad213665e893148ee56fa922ef1da
parent5ad6552a836ef759ff8a96ffec333aacabb8dc36
Restore size of TemplateParameterList after D44352

After adding a field of one bit, the bitfield members would take
30+1+1+1 = 33 bits, causing the size of TemplateParameterList to
increase from 16 to 24 bytes on 64-bit systems.

With 29 bits for NumParams we can encode up to half a billion template
parameters, which is almost certainly still enough for anybody.
clang/include/clang/AST/DeclTemplate.h