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).
$ touch t.c $ clang -cc1 -triple riscv64 -w -emit-pch -o test.pch t.c $ clang -cc1 -triple riscv64 -w -x c -include-pch test.pch -ast-dump-all /dev/null
The total number required now by clang goes far beyond 300 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.