diff --git a/llvm/include/llvm/ADT/BitVector.h b/llvm/include/llvm/ADT/BitVector.h index 70de4c239c1c7..1fbce1a95fb76 100644 --- a/llvm/include/llvm/ADT/BitVector.h +++ b/llvm/include/llvm/ADT/BitVector.h @@ -327,7 +327,7 @@ class BitVector { /// find_prev_unset - Returns the index of the first unset bit that precedes /// the bit at \p PriorTo. Returns -1 if all previous bits are set. - int find_prev_unset(unsigned PriorTo) { + int find_prev_unset(unsigned PriorTo) const { return find_last_unset_in(0, PriorTo); }