https://github.com/unterumarmung approved this pull request. LGTM but I'm not sure my approve is enough. Also, can we add the `friend` test case from previous my comment as a regression test? https://github.com/llvm/llvm-project/pull/229802