Skip to content

Commit 511f501

Browse files
committed
Fix macro to edit while iterating through bitvector
1 parent 2b3c566 commit 511f501

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

lib/Common/DataStructures/SparseBitVector.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -36,10 +36,10 @@ typedef BVUnit64 SparseBVUnit;
3636
#define FOREACH_BITSET_IN_SPARSEBV_EDITING(index, bv) \
3737
{ \
3838
BVIndex index; \
39-
BVSparseNode * _curNodeEdit = (bv)->head; \
39+
auto * _curNodeEdit = (bv)->head; \
4040
while (_curNodeEdit != nullptr) \
4141
{ \
42-
BVSparseNode * _next = _curNodeEdit->next; \
42+
auto * _next = _curNodeEdit->next; \
4343
BVIndex _offset; \
4444
BVIndex _startIndex = _curNodeEdit->startIndex; \
4545
SparseBVUnit _unit = _curNodeEdit->data; \

0 commit comments

Comments
 (0)