[llvm-commits] [compiler-rt] r162258 - /compiler-rt/trunk/lib/asan/asan_mac.cc
Kostya Serebryany
kcc at google.com
Mon Aug 20 23:43:45 PDT 2012
Author: kcc
Date: Tue Aug 21 01:43:44 2012
New Revision: 162258
URL: http://llvm.org/viewvc/llvm-project?rev=162258&view=rev
Log:
[asan] fix lint
Modified:
compiler-rt/trunk/lib/asan/asan_mac.cc
Modified: compiler-rt/trunk/lib/asan/asan_mac.cc
URL: http://llvm.org/viewvc/llvm-project/compiler-rt/trunk/lib/asan/asan_mac.cc?rev=162258&r1=162257&r2=162258&view=diff
==============================================================================
--- compiler-rt/trunk/lib/asan/asan_mac.cc (original)
+++ compiler-rt/trunk/lib/asan/asan_mac.cc Tue Aug 21 01:43:44 2012
@@ -295,7 +295,7 @@
} \
return REAL(dispatch_x_f)(dq, (void*)asan_ctxt, \
asan_dispatch_call_block_and_release); \
- }
+ }
INTERCEPT_DISPATCH_X_F_3(dispatch_async_f)
INTERCEPT_DISPATCH_X_F_3(dispatch_sync_f)
@@ -336,13 +336,13 @@
// See
// http://www.opensource.apple.com/source/libdispatch/libdispatch-228.18/src/internal.h
-#define fastpath(x) ((typeof(x))__builtin_expect((long)(x), ~0l))
+#define fastpath(x) ((typeof(x))__builtin_expect((uptr)(x), ~0l))
// See
// http://www.opensource.apple.com/source/libdispatch/libdispatch-228.18/src/init.c
static dispatch_block_t _dispatch_Block_copy(dispatch_block_t db) {
dispatch_block_t rval;
- if (fastpath(db)) {
+ if (fastpath(db)) {
while (!fastpath(rval = Block_copy(db))) {
sleep(1);
}
More information about the llvm-commits
mailing list