diff options
| author | Alexey Samsonov <samsonov@google.com> | 2014-03-18 11:17:01 +0000 |
|---|---|---|
| committer | Alexey Samsonov <samsonov@google.com> | 2014-03-18 11:17:01 +0000 |
| commit | f88f317d35814d99bc4e605ef9a8d9e66d7e2b99 (patch) | |
| tree | e9a809eecf3168db1c6237b30095962584a44572 /compiler-rt/lib/sanitizer_common/sanitizer_addrhashmap.h | |
| parent | a65db1e9ee63239adc746daaee472155730b9441 (diff) | |
| download | bcm5719-llvm-f88f317d35814d99bc4e605ef9a8d9e66d7e2b99.tar.gz bcm5719-llvm-f88f317d35814d99bc4e605ef9a8d9e66d7e2b99.zip | |
Fix -Werror build
llvm-svn: 204139
Diffstat (limited to 'compiler-rt/lib/sanitizer_common/sanitizer_addrhashmap.h')
| -rw-r--r-- | compiler-rt/lib/sanitizer_common/sanitizer_addrhashmap.h | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/compiler-rt/lib/sanitizer_common/sanitizer_addrhashmap.h b/compiler-rt/lib/sanitizer_common/sanitizer_addrhashmap.h index d837a4cec58..02af549740a 100644 --- a/compiler-rt/lib/sanitizer_common/sanitizer_addrhashmap.h +++ b/compiler-rt/lib/sanitizer_common/sanitizer_addrhashmap.h @@ -133,7 +133,7 @@ void AddrHashMap<T, kSize>::acquire(Handle *h) { Bucket *b = &table_[hash]; h->created_ = false; - h->addidx_ = -1; + h->addidx_ = -1U; h->bucket_ = b; h->cell_ = 0; @@ -272,7 +272,7 @@ void AddrHashMap<T, kSize>::release(Handle *h) { atomic_store(&c->addr, 0, memory_order_release); // See if we need to compact the bucket. AddBucket *add = (AddBucket*)atomic_load(&b->add, memory_order_relaxed); - if (h->addidx_ == -1) { + if (h->addidx_ == -1U) { // Removed from embed array, move an add element into the freed cell. if (add) { uptr last = --add->size; @@ -293,7 +293,7 @@ void AddrHashMap<T, kSize>::release(Handle *h) { b->mtx.Unlock(); } else { CHECK_EQ(addr1, h->addr_); - if (h->addidx_ != -1) + if (h->addidx_ != -1U) b->mtx.ReadUnlock(); } } |

