https://github.com/slydiman approved this pull request. LGTM. Thanks for the catch and fix! Unfortunately I cannot test such case completely. Hope you tested it and this PR will finally close the issue. https://github.com/llvm/llvm-project/pull/149007