
This completes https://github.com/llvm/llvm-project/pull/147835 by adapting the changes in the API to the rewriter. Fixes build failures such as reported here: https://github.com/llvm/llvm-project/pull/147835#issuecomment-3170483197 We previously missed this because it was not tested in pre-commit CI.