https://github.com/boomanaiden154 approved this pull request. I guess this is probably the best way to solve this problem. It would be nice to understand why the patch in question actually caused this regression. https://github.com/llvm/llvm-project/pull/191893