summaryrefslogtreecommitdiff
path: root/lib/sanitizer_common/sanitizer_bitvector.h
diff options
context:
space:
mode:
authorKostya Serebryany <kcc@google.com>2014-02-13 15:59:00 +0000
committerKostya Serebryany <kcc@google.com>2014-02-13 15:59:00 +0000
commit5c8699e6a78818c59ece2c60f77ad630b1b6eb86 (patch)
tree52d0db85548fdbc7cbd7567a3919ece9b541165a /lib/sanitizer_common/sanitizer_bitvector.h
parent37a9577a729f85647991d0eae1fbed3b854b61ed (diff)
[sanitizer] replace MostSignificantSetBitIndex with LeastSignificantSetBitIndex in bit vector (to iterate bits in increasing order)
git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@201339 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/sanitizer_common/sanitizer_bitvector.h')
-rw-r--r--lib/sanitizer_common/sanitizer_bitvector.h3
1 files changed, 1 insertions, 2 deletions
diff --git a/lib/sanitizer_common/sanitizer_bitvector.h b/lib/sanitizer_common/sanitizer_bitvector.h
index 93b99a4ce..2fb7d4f71 100644
--- a/lib/sanitizer_common/sanitizer_bitvector.h
+++ b/lib/sanitizer_common/sanitizer_bitvector.h
@@ -48,8 +48,7 @@ class BasicBitVector {
uptr getAndClearFirstOne() {
CHECK(!empty());
- // FIXME: change to LeastSignificantSetBitIndex?
- uptr idx = MostSignificantSetBitIndex(bits_);
+ uptr idx = LeastSignificantSetBitIndex(bits_);
clearBit(idx);
return idx;
}