I'd like to backport https://github.com/llvm/llvm-project/pull/81363 to the release/18.x branch. /cherry-pick https://github.com/llvm/llvm-project/commit/0a255fcf4a90f9e864ae9321b28e4956f7c865fb