[compiler-rt] r203661 - Fix MSVS warnings in the sanitizers RTL
Timur Iskhodzhanov
timurrrr at google.com
Wed Mar 12 07:09:26 PDT 2014
Author: timurrrr
Date: Wed Mar 12 09:09:25 2014
New Revision: 203661
URL: http://llvm.org/viewvc/llvm-project?rev=203661&view=rev
Log:
Fix MSVS warnings in the sanitizers RTL
Modified:
compiler-rt/trunk/lib/sanitizer_common/sanitizer_bitvector.h
Modified: compiler-rt/trunk/lib/sanitizer_common/sanitizer_bitvector.h
URL: http://llvm.org/viewvc/llvm-project/compiler-rt/trunk/lib/sanitizer_common/sanitizer_bitvector.h?rev=203661&r1=203660&r2=203661&view=diff
==============================================================================
--- compiler-rt/trunk/lib/sanitizer_common/sanitizer_bitvector.h (original)
+++ compiler-rt/trunk/lib/sanitizer_common/sanitizer_bitvector.h Wed Mar 12 09:09:25 2014
@@ -44,7 +44,7 @@ class BasicBitVector {
return bits_ != old;
}
- bool getBit(uptr idx) const { return bits_ & mask(idx); }
+ bool getBit(uptr idx) const { return (bits_ & mask(idx)) != 0; }
uptr getAndClearFirstOne() {
CHECK(!empty());
@@ -77,7 +77,9 @@ class BasicBitVector {
void copyFrom(const BasicBitVector &v) { bits_ = v.bits_; }
// Returns true if 'this' intersects with 'v'.
- bool intersectsWith(const BasicBitVector &v) const { return bits_ & v.bits_; }
+ bool intersectsWith(const BasicBitVector &v) const {
+ return (bits_ & v.bits_) != 0;
+ }
// for (BasicBitVector<>::Iterator it(bv); it.hasNext();) {
// uptr idx = it.next();
More information about the llvm-commits
mailing list