We should backport https://github.com/llvm/llvm-project/pull/84127 to LLVM 18 because it's a regression from LLVM 17. /cherry-pick f50d3582b4844b86ad86372028e44b52c560ec7d