[llvm] r302458 - [BitVector] Make find_prev member function const.

Zachary Turner via llvm-commits llvm-commits at lists.llvm.org
Mon May 8 12:45:55 PDT 2017


Author: zturner
Date: Mon May  8 14:45:55 2017
New Revision: 302458

URL: http://llvm.org/viewvc/llvm-project?rev=302458&view=rev
Log:
[BitVector] Make find_prev member function const.

NFC.

Modified:
    llvm/trunk/include/llvm/ADT/BitVector.h

Modified: llvm/trunk/include/llvm/ADT/BitVector.h
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/include/llvm/ADT/BitVector.h?rev=302458&r1=302457&r2=302458&view=diff
==============================================================================
--- llvm/trunk/include/llvm/ADT/BitVector.h (original)
+++ llvm/trunk/include/llvm/ADT/BitVector.h Mon May  8 14:45:55 2017
@@ -255,7 +255,7 @@ public:
 
   /// find_prev - Returns the index of the first set bit that precedes the
   /// the bit at \p PriorTo.  Returns -1 if all previous bits are unset.
-  int find_prev(unsigned PriorTo) {
+  int find_prev(unsigned PriorTo) const {
     if (PriorTo == 0)
       return -1;
 




More information about the llvm-commits mailing list