From: Alexander Potapenko Date: Thu, 7 Feb 2013 12:00:40 +0000 (+0000) Subject: [ASan] Fix a compilation warning. X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=07c740e2130057967b36e1b2c150e98a663e3099;p=platform%2Fupstream%2Fllvm.git [ASan] Fix a compilation warning. llvm-svn: 174604 --- diff --git a/compiler-rt/lib/sanitizer_common/sanitizer_allocator.h b/compiler-rt/lib/sanitizer_common/sanitizer_allocator.h index caf7263..b4eb7f9 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(); } }