[all-commits] [llvm/llvm-project] d3a779: Restore size of TemplateParameterList after D44352

Aaron Puchert via All-commits all-commits at lists.llvm.org
Sat Sep 5 09:02:00 PDT 2020


  Branch: refs/heads/master
  Home:   https://github.com/llvm/llvm-project
  Commit: d3a779fe21500457e95c8c4e963638b93e3bcc71
      https://github.com/llvm/llvm-project/commit/d3a779fe21500457e95c8c4e963638b93e3bcc71
  Author: Aaron Puchert <aaronpuchert at alice-dsl.net>
  Date:   2020-09-05 (Sat, 05 Sep 2020)

  Changed paths:
    M clang/include/clang/AST/DeclTemplate.h

  Log Message:
  -----------
  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.




More information about the All-commits mailing list