joker-eph wrote: I actually drafted something to fix it in a 4-commits stack, see here: https://github.com/llvm/llvm-project/pull/238153 ; it's still a draft so I can also yield this to you if you think of a better approach. https://github.com/llvm/llvm-project/pull/227263