From 886c6baf06d6c16847e9c8ad0d5cf7f462adbd0f Mon Sep 17 00:00:00 2001 From: Zachary Turner Date: Mon, 8 May 2017 19:45:55 +0000 Subject: [PATCH] [BitVector] Make find_prev member function const. NFC. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@302458 91177308-0d34-0410-b5e6-96231b3b80d8 --- include/llvm/ADT/BitVector.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/include/llvm/ADT/BitVector.h b/include/llvm/ADT/BitVector.h index e835f151622..4a2af7cd68a 100644 --- a/include/llvm/ADT/BitVector.h +++ b/include/llvm/ADT/BitVector.h @@ -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; -- 2.11.0