JDevlieghere wrote: I don't like that we now potentially print the warning more than once. I don't want to further complicate this PR, so I'll address that together with a test in a follow-up later today. https://github.com/llvm/llvm-project/pull/190407