Skip to content

Commit 0ea54be

Browse files
[ADT] Mark BitVector::find_prev_unset const (NFC) (#156272)
find_prev_unset calls find_last_unset_in, a const method, but find_prev_unset itself isn't marked const.
1 parent a50b096 commit 0ea54be

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

llvm/include/llvm/ADT/BitVector.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -327,7 +327,7 @@ class BitVector {
327327

328328
/// find_prev_unset - Returns the index of the first unset bit that precedes
329329
/// the bit at \p PriorTo. Returns -1 if all previous bits are set.
330-
int find_prev_unset(unsigned PriorTo) {
330+
int find_prev_unset(unsigned PriorTo) const {
331331
return find_last_unset_in(0, PriorTo);
332332
}
333333

0 commit comments

Comments
 (0)