diff options
| author | Kostya Serebryany <kcc@google.com> | 2013-05-16 08:03:26 +0000 |
|---|---|---|
| committer | Kostya Serebryany <kcc@google.com> | 2013-05-16 08:03:26 +0000 |
| commit | 19eb46f4ca5fcfaba243cb47ff8f21acd9badf6a (patch) | |
| tree | fd470e40517f8954e477e43aae57b0c0ccd40530 /compiler-rt/lib/sanitizer_common/sanitizer_allocator.h | |
| parent | b7ca536888faf4c79331fd3c84c5ce19d6f00ae1 (diff) | |
| download | bcm5719-llvm-19eb46f4ca5fcfaba243cb47ff8f21acd9badf6a.tar.gz bcm5719-llvm-19eb46f4ca5fcfaba243cb47ff8f21acd9badf6a.zip | |
[sanitizer] fix a gcc warning
llvm-svn: 181992
Diffstat (limited to 'compiler-rt/lib/sanitizer_common/sanitizer_allocator.h')
| -rw-r--r-- | compiler-rt/lib/sanitizer_common/sanitizer_allocator.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/compiler-rt/lib/sanitizer_common/sanitizer_allocator.h b/compiler-rt/lib/sanitizer_common/sanitizer_allocator.h index f17f08eab56..b93de9fcfb6 100644 --- a/compiler-rt/lib/sanitizer_common/sanitizer_allocator.h +++ b/compiler-rt/lib/sanitizer_common/sanitizer_allocator.h @@ -495,7 +495,7 @@ class SizeClassAllocator64 { uptr offset = chunk % kRegionSize; // Here we divide by a non-constant. This is costly. // size always fits into 32-bits. If the offset fits too, use 32-bit div. - if (offset >> 32) + if (offset >> (SANITIZER_WORDSIZE / 2)) return offset / size; return (u32)offset / (u32)size; } |

