https://github.com/tblah approved this pull request. The changes look correct but I wonder what the motivation for this is? I guess this is strictly a correctness issue but I can't imagine how this bug could occur in practice. https://github.com/llvm/llvm-project/pull/214157