https://github.com/sdesmalen-arm approved this pull request. Thanks for fixing this, Clang shouldn't trigger an assertion failure. I also agree that changing the diagnostic location is an improvement. https://github.com/llvm/llvm-project/pull/94976