https://github.com/ilya-biryukov approved this pull request. The change looks good, I believe the comments about potentially redundant checks and naming of the function could be addressed in a follow-up. https://github.com/llvm/llvm-project/pull/69595