summaryrefslogtreecommitdiff
path: root/lib/profile/InstrProfilingBuffer.c
diff options
context:
space:
mode:
authorDavid Blaikie <dblaikie@gmail.com>2014-03-21 21:45:49 +0000
committerDavid Blaikie <dblaikie@gmail.com>2014-03-21 21:45:49 +0000
commite41aa24fe9db576a911cc2fe6f1a42637d3ac043 (patch)
tree2e6068e4ef6739f15a3746efdfe1f7ef253cbcee /lib/profile/InstrProfilingBuffer.c
parent2507741d03111df63296469c32b6bbd4d0842f15 (diff)
Avoid GCC's "cast from pointer to integer of different size" warning.
This is a bit of a stab in the dark as I'm not sure I've got these source files compiling correctly locally. (and the warning only reproduces on a 32bit build anyway) git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@204521 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/profile/InstrProfilingBuffer.c')
-rw-r--r--lib/profile/InstrProfilingBuffer.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/profile/InstrProfilingBuffer.c b/lib/profile/InstrProfilingBuffer.c
index 250e22143..8fc0117e9 100644
--- a/lib/profile/InstrProfilingBuffer.c
+++ b/lib/profile/InstrProfilingBuffer.c
@@ -41,8 +41,8 @@ int __llvm_profile_write_buffer(char *Buffer) {
DataSize,
CountersSize,
NamesSize,
- (uint64_t)CountersBegin,
- (uint64_t)NamesBegin
+ (uintptr_t)CountersBegin,
+ (uintptr_t)NamesBegin
};
/* Write the data. */