nikic wrote: I went ahead and put up another PR with your variant: https://github.com/llvm/llvm-project/pull/76819 You convinced me that this approach is correct, and I think it's a bit cleaner overall. https://github.com/llvm/llvm-project/pull/76142