https://github.com/tarunprabhu approved this pull request. This feels like a good place to use a small lambda to avoid duplicating the code, but it's small enough that we can just leave it as it is. https://github.com/llvm/llvm-project/pull/186212