diff options
| author | Alexander Potapenko <glider@google.com> | 2013-02-07 12:00:40 +0000 |
|---|---|---|
| committer | Alexander Potapenko <glider@google.com> | 2013-02-07 12:00:40 +0000 |
| commit | 07c740e2130057967b36e1b2c150e98a663e3099 (patch) | |
| tree | 0b35974f7e4428c54cb37b1a73b18e5d3679b773 | |
| parent | f444a493107cb067b72d5f4ed8b6657cfec1cddd (diff) | |
| download | bcm5719-llvm-07c740e2130057967b36e1b2c150e98a663e3099.tar.gz bcm5719-llvm-07c740e2130057967b36e1b2c150e98a663e3099.zip | |
[ASan] Fix a compilation warning.
llvm-svn: 174604
| -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 caf7263bfc3..b4eb7f99484 100644 --- a/compiler-rt/lib/sanitizer_common/sanitizer_allocator.h +++ b/compiler-rt/lib/sanitizer_common/sanitizer_allocator.h @@ -652,7 +652,7 @@ class SizeClassAllocator32 { // ForceLock() and ForceUnlock() are needed to implement Darwin malloc zone // introspection API. void ForceLock() { - for (int i = 0; i < kNumClasses; i++) { + for (uptr i = 0; i < kNumClasses; i++) { GetSizeClassInfo(i)->mutex.Lock(); } } |

