diff options
| author | Shantonu Sen <ssen@apple.com> | 2009-09-23 15:34:09 +0000 |
|---|---|---|
| committer | Shantonu Sen <ssen@apple.com> | 2009-09-23 15:34:09 +0000 |
| commit | 35684d034efcafcce4d7e81aa49bec7f9ac277d6 (patch) | |
| tree | 79d86a6cdc795339533a85b0274a6698b4fe8edc /compiler-rt | |
| parent | 2a920014d3b33f08b0ccd01fde8004f0131ddab6 (diff) | |
| download | bcm5719-llvm-35684d034efcafcce4d7e81aa49bec7f9ac277d6.tar.gz bcm5719-llvm-35684d034efcafcce4d7e81aa49bec7f9ac277d6.zip | |
Keep on castin', in the name of -pedantic
llvm-svn: 82626
Diffstat (limited to 'compiler-rt')
| -rw-r--r-- | compiler-rt/BlocksRuntime/runtime.c | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/compiler-rt/BlocksRuntime/runtime.c b/compiler-rt/BlocksRuntime/runtime.c index 33c5b0800e9..175357b0d8f 100644 --- a/compiler-rt/BlocksRuntime/runtime.c +++ b/compiler-rt/BlocksRuntime/runtime.c @@ -669,7 +669,7 @@ const char *_Block_dump(const void *block) { 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 @@ const char *_Block_dump(const void *block) { 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 @@ const char *_Block_byref_dump(struct Block_byref *src) { 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; } |

