https://github.com/DonatNagyE requested changes to this pull request. I agree that it would be useful to systematically check the use of the `APSInt -> uint64_t` conversions, because it's likely that there are other ones that can lead to crashes. https://github.com/llvm/llvm-project/pull/65887