[llvm] [MC] Optimize loops in MC. (PR #98114)

Nikita Popov via llvm-commits llvm-commits at lists.llvm.org
Tue Jul 9 00:39:00 PDT 2024


nikic wrote:

> > Can't some/all of these be range based for loops instead?
> 
> Is range based loop preferable?

Yes :) From the same guide: https://llvm.org/docs/CodingStandards.html#use-range-based-for-loops-wherever-possible

https://github.com/llvm/llvm-project/pull/98114


More information about the llvm-commits mailing list