diff options
| author | David Blaikie <dblaikie@gmail.com> | 2014-03-21 21:45:49 +0000 |
|---|---|---|
| committer | David Blaikie <dblaikie@gmail.com> | 2014-03-21 21:45:49 +0000 |
| commit | 089b5c91740802a966ccd5fb6da9aa28e1e92a77 (patch) | |
| tree | af775d502a5bc44d7686ddc5a58491146225b504 /compiler-rt/lib/profile/InstrProfilingBuffer.c | |
| parent | 900e9a3da059b31e0da49e5025ac6819a14f43e6 (diff) | |
| download | bcm5719-llvm-089b5c91740802a966ccd5fb6da9aa28e1e92a77.tar.gz bcm5719-llvm-089b5c91740802a966ccd5fb6da9aa28e1e92a77.zip | |
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)
llvm-svn: 204521
Diffstat (limited to 'compiler-rt/lib/profile/InstrProfilingBuffer.c')
| -rw-r--r-- | compiler-rt/lib/profile/InstrProfilingBuffer.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/compiler-rt/lib/profile/InstrProfilingBuffer.c b/compiler-rt/lib/profile/InstrProfilingBuffer.c index 250e2214359..8fc0117e949 100644 --- a/compiler-rt/lib/profile/InstrProfilingBuffer.c +++ b/compiler-rt/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. */ |

