Request to backport https://github.com/llvm/llvm-project/pull/80724 . /cherry-pick a18e92d