[llvm-commits] [compiler-rt] r172520 - /compiler-rt/trunk/lib/sanitizer_common/tests/sanitizer_allocator_testlib.cc
Dmitry Vyukov
dvyukov at google.com
Tue Jan 15 00:51:11 PST 2013
Author: dvyukov
Date: Tue Jan 15 02:51:10 2013
New Revision: 172520
URL: http://llvm.org/viewvc/llvm-project?rev=172520&view=rev
Log:
asan: fix lint warnings
Modified:
compiler-rt/trunk/lib/sanitizer_common/tests/sanitizer_allocator_testlib.cc
Modified: compiler-rt/trunk/lib/sanitizer_common/tests/sanitizer_allocator_testlib.cc
URL: http://llvm.org/viewvc/llvm-project/compiler-rt/trunk/lib/sanitizer_common/tests/sanitizer_allocator_testlib.cc?rev=172520&r1=172519&r2=172520&view=diff
==============================================================================
--- compiler-rt/trunk/lib/sanitizer_common/tests/sanitizer_allocator_testlib.cc (original)
+++ compiler-rt/trunk/lib/sanitizer_common/tests/sanitizer_allocator_testlib.cc Tue Jan 15 02:51:10 2013
@@ -50,8 +50,8 @@
static pthread_key_t pkey;
static void thread_dtor(void *v) {
- if ((long)v != 3) {
- pthread_setspecific(pkey, (void*)((long)v + 1));
+ if ((uptr)v != 3) {
+ pthread_setspecific(pkey, (void*)((uptr)v + 1));
return;
}
allocator.SwallowCache(&cache);
@@ -70,7 +70,6 @@
} // namespace
extern "C" {
-
void *malloc(size_t size) {
if (UNLIKELY(!thread_inited))
thread_init();
@@ -147,5 +146,4 @@
void mallopt() {
}
-
} // extern "C"
More information about the llvm-commits
mailing list