[llvm] [ADT] Use range-based for loops in SparseBitVector.h (NFC) (PR #158408)
Shilei Tian via llvm-commits
llvm-commits at lists.llvm.org
Sat Sep 13 03:18:24 PDT 2025
================
@@ -799,11 +799,8 @@ class SparseBitVector {
unsigned count() const {
unsigned BitCount = 0;
- for (ElementListConstIter Iter = Elements.begin();
- Iter != Elements.end();
- ++Iter)
- BitCount += Iter->count();
-
+ for (const auto &Elem : Elements)
----------------
shiltian wrote:
no auto?
https://github.com/llvm/llvm-project/pull/158408
More information about the llvm-commits
mailing list