[llvm-commits] [compiler-rt] r82626 - /compiler-rt/trunk/BlocksRuntime/runtime.c
Shantonu Sen
ssen at apple.com
Wed Sep 23 08:34:09 PDT 2009
Author: ssen
Date: Wed Sep 23 10:34:09 2009
New Revision: 82626
URL: http://llvm.org/viewvc/llvm-project?rev=82626&view=rev
Log:
Keep on castin', in the name of -pedantic
Modified:
compiler-rt/trunk/BlocksRuntime/runtime.c
Modified: compiler-rt/trunk/BlocksRuntime/runtime.c
URL: http://llvm.org/viewvc/llvm-project/compiler-rt/trunk/BlocksRuntime/runtime.c?rev=82626&r1=82625&r2=82626&view=diff
==============================================================================
--- compiler-rt/trunk/BlocksRuntime/runtime.c (original)
+++ compiler-rt/trunk/BlocksRuntime/runtime.c Wed Sep 23 10:34:09 2009
@@ -669,7 +669,7 @@
cp += sprintf(cp, " HASCTOR");
}
cp += sprintf(cp, "\nrefcount: %u\n", closure->flags & BLOCK_REFCOUNT_MASK);
- cp += sprintf(cp, "invoke: %#x\n", (uintptr_t)closure->invoke);
+ cp += sprintf(cp, "invoke: %p\n", (void *)(uintptr_t)closure->invoke);
{
struct Block_descriptor *dp = closure->descriptor;
cp += sprintf(cp, "descriptor: %p\n", (void *)dp);
@@ -677,8 +677,8 @@
cp += sprintf(cp, "descriptor->size: %lu\n", dp->size);
if (closure->flags & BLOCK_HAS_COPY_DISPOSE) {
- cp += sprintf(cp, "descriptor->copy helper: %#x\n", (uintptr_t)dp->copy);
- cp += sprintf(cp, "descriptor->dispose helper: %#x\n", (uintptr_t)dp->dispose);
+ cp += sprintf(cp, "descriptor->copy helper: %p\n", (void *)(uintptr_t)dp->copy);
+ cp += sprintf(cp, "descriptor->dispose helper: %p\n", (void *)(uintptr_t)dp->dispose);
}
}
return buffer;
@@ -693,8 +693,8 @@
cp += sprintf(cp, " flags: 0x%x\n", src->flags);
cp += sprintf(cp, " size: %d\n", src->size);
if (src->flags & BLOCK_HAS_COPY_DISPOSE) {
- cp += sprintf(cp, " copy helper: %#x\n", (uintptr_t)src->byref_keep);
- cp += sprintf(cp, " dispose helper: %#x\n", (uintptr_t)src->byref_destroy);
+ cp += sprintf(cp, " copy helper: %p\n", (void *)(uintptr_t)src->byref_keep);
+ cp += sprintf(cp, " dispose helper: %p\n", (void *)(uintptr_t)src->byref_destroy);
}
return buffer;
}
More information about the llvm-commits
mailing list