[all-commits] [llvm/llvm-project] fa45f8: [clang][Serialization][RISCV] Increase the number ...

Roger Ferrer Ibáñez via All-commits all-commits at lists.llvm.org
Mon Jun 19 07:41:01 PDT 2023


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: fa45f81ff7ea9fc2a2a40fea8dd7626ecc3a8dbb
      https://github.com/llvm/llvm-project/commit/fa45f81ff7ea9fc2a2a40fea8dd7626ecc3a8dbb
  Author: Roger Ferrer Ibanez <roger.ferrer at bsc.es>
  Date:   2023-06-19 (Mon, 19 Jun 2023)

  Changed paths:
    M clang/include/clang/Serialization/ASTBitCodes.h
    M clang/lib/Serialization/ASTReader.cpp
    M clang/test/Modules/embed-files-compressed.cpp
    M clang/test/Modules/empty.modulemap

  Log Message:
  -----------
  [clang][Serialization][RISCV] Increase the number of reserved predefined type IDs

In D152070 we added many new intrinsic types required for the RISC-V
Vector Extension.

This was crashing when loading the AST as those types are intrinsically
added to the AST (they don't come from the disk).

The total number required now by clang exceeds 400 so increasing the
value to 500 solves the problem. This value was already increased in
D92715 but I assume this has some impact on the on-disk format.

Also add a static assert to avoid this happening again in the future.

Differential Revision: https://reviews.llvm.org/D153111




More information about the All-commits mailing list