I'd like to backport #84626 to the release/18.x branch. /cherry-pick [facb89a](https://github.com/llvm/llvm-project/commit/facb89ae1228c067b2b14f32e7e70608fe50704b)