[llvm] [ADT] Use range-based for loops in SparseBitVector.h (NFC) (PR #158408)
Kazu Hirata via llvm-commits
llvm-commits at lists.llvm.org
Sat Sep 13 09:30:18 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)
----------------
kazutakahirata wrote:
Fixed. Thanks for the review!
https://github.com/llvm/llvm-project/pull/158408
More information about the llvm-commits
mailing list