Fixes the test failure from https://github.com/llvm/llvm-project/pull/161678#issuecomment-3377949862.