https://github.com/ilya-biryukov requested changes to this pull request. This looks good, but I wanted to explore if we could write a unit test for this... https://github.com/llvm/llvm-project/pull/106241