summaryrefslogtreecommitdiff
path: root/lib/profile/InstrProfilingWriter.c
diff options
context:
space:
mode:
authorXinliang David Li <davidxl@google.com>2015-11-21 07:26:46 +0000
committerXinliang David Li <davidxl@google.com>2015-11-21 07:26:46 +0000
commitebfe8691b935e56f9acbfa34a7409f4986a82d74 (patch)
treeceb551b8b2f137d715021baed9818f5424c7e643 /lib/profile/InstrProfilingWriter.c
parentdc716a3d5e88be416c636040b6cddd1ff553cae4 (diff)
downloadcompiler-rt-ebfe8691b935e56f9acbfa34a7409f4986a82d74.tar.gz
Fix -Wpointer-sign warning
git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@253770 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/profile/InstrProfilingWriter.c')
-rw-r--r--lib/profile/InstrProfilingWriter.c10
1 files changed, 5 insertions, 5 deletions
diff --git a/lib/profile/InstrProfilingWriter.c b/lib/profile/InstrProfilingWriter.c
index af0afc85a..e1aecec89 100644
--- a/lib/profile/InstrProfilingWriter.c
+++ b/lib/profile/InstrProfilingWriter.c
@@ -60,11 +60,11 @@ __attribute__((visibility("hidden"))) int llvmWriteProfDataImpl(
/* Write the data. */
ProfDataIOVec IOVec[] = {
- {(const char *)&Header, sizeof(__llvm_profile_header), 1},
- {(const char *)DataBegin, sizeof(__llvm_profile_data), DataSize},
- {(const char *)CountersBegin, sizeof(uint64_t), CountersSize},
- {(const char *)NamesBegin, sizeof(char), NamesSize},
- {(const char *)Zeroes, sizeof(char), Padding}};
+ {&Header, sizeof(__llvm_profile_header), 1},
+ {DataBegin, sizeof(__llvm_profile_data), DataSize},
+ {CountersBegin, sizeof(uint64_t), CountersSize},
+ {NamesBegin, sizeof(char), NamesSize},
+ {Zeroes, sizeof(char), Padding}};
if (Writer(IOVec, sizeof(IOVec) / sizeof(ProfDataIOVec), &WriterCtx))
return -1;
if (ValueDataBegin) {