mirror of
https://github.com/llvm/llvm-project.git
synced 2025-04-28 08:26:07 +00:00

Both `std::distance` or `ranges::distance` are inefficient for non-sized ranges. Also, calculating the range using `int` type is seriously problematic. This patch avoids using `distance` and calculation of the length of non-sized ranges. Fixes #86833.